From 5071db660af78c3cbeef5164bf895a0ed4e92290 Mon Sep 17 00:00:00 2001 From: jmeneghini Date: Fri, 19 Jan 2024 20:19:02 -0500 Subject: [PATCH] added docker-build to github action --- .github/workflows/docker-build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 6b91faf1..893ee9d8 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -1,4 +1,4 @@ -name: Docker Build +name: Docker Build and Push on: push: @@ -6,22 +6,25 @@ on: - main jobs: - build-and-push: + build: runs-on: ubuntu-latest steps: - name: Check out the repo uses: actions/checkout@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Log in to Docker Hub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - - name: Build and push Docker image + - name: Build and push multi-architecture image uses: docker/build-push-action@v2 with: context: . - file: ./Dockerfile push: true - tags: jmeneghini/midsx_ubuntu:latest + tags: jmeneghini/midsx:latest + platforms: linux/amd64,linux/arm64