Skip to content

Commit

Permalink
build: Update xml2rfc docker image (#849)
Browse files Browse the repository at this point in the history
* build: Add additional tools
 * Add git, less and vim.

* build: Install xml2rfc from PyPI

* build: Change docker publish workflow to run manually

* build: Change docker/base.Dockerfile to Unix

* build: Use base.Dockerfile for dev.Dockerfile

* ci: Change .github/workflows/build-base.yml to Unix

* ci: Build and publish dev image
 * Remove redundant docker publish workflow.
 * Add instructions to build and publish dev docker image.
 * Rename build-base workflow.
  • Loading branch information
kesara authored Aug 9, 2022
1 parent 41b177a commit d111945
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 294 deletions.
Original file line number Diff line number Diff line change
@@ -1,42 +1,52 @@
name: Build Base Docker Image

on:
push:
branches:
- 'main'
paths:
- 'docker/base.Dockerfile'

workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build & Push
uses: docker/build-push-action@v3
with:
context: .
file: docker/base.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/ietf-tools/xml2rfc-base:latest
name: Build Docker Images

on:
push:
branches:
- 'main'
paths:
- 'docker/base.Dockerfile'
- 'docker/dev.Dockerfile'

workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Base image - Docker Build & Push
uses: docker/build-push-action@v3
with:
context: .
file: docker/base.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/ietf-tools/xml2rfc-base:latest

- name: Dev image - Docker Build & Push
uses: docker/build-push-action@v3
with:
context: .
file: docker/dev.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/ietf-tools/xml2rfc-dev:latest
88 changes: 0 additions & 88 deletions .github/workflows/docker-publish.yml

This file was deleted.

95 changes: 0 additions & 95 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit d111945

Please sign in to comment.