From 2fade425808985d75e6afc532e701ed9fb142f06 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Fri, 29 Nov 2024 17:17:39 -0500 Subject: [PATCH] ci: create build-docker.yml --- .github/workflows/build-docker.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-docker.yml diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml new file mode 100644 index 0000000..39814c2 --- /dev/null +++ b/.github/workflows/build-docker.yml @@ -0,0 +1,33 @@ +name: Build Docker Image + +on: + push: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build Images + uses: docker/build-push-action@v6 + env: + DOCKER_BUILD_SUMMARY: false + with: + context: . + file: Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: ghcr.io/ietf-tools/upgrade-page:latest