From f2eb705bac72f50d563306ee6502842ef86b7062 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Fri, 9 Dec 2022 16:42:58 -0800 Subject: [PATCH 1/3] auto build amd and arm when pushing to master --- .github/workflows/docker-hub-ci.yaml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/docker-hub-ci.yaml diff --git a/.github/workflows/docker-hub-ci.yaml b/.github/workflows/docker-hub-ci.yaml new file mode 100644 index 0000000..618e919 --- /dev/null +++ b/.github/workflows/docker-hub-ci.yaml @@ -0,0 +1,33 @@ +name: Docker Hub CI + +on: + push: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v3 + with: + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/dadjokes:latest + platforms: linux/amd64,linux/arm64 From 17377cde147f608588f4781e1b89e682a9adea45 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Fri, 9 Dec 2022 16:45:15 -0800 Subject: [PATCH 2/3] testing builder --- .github/workflows/docker-hub-ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-hub-ci.yaml b/.github/workflows/docker-hub-ci.yaml index 618e919..4ca4356 100644 --- a/.github/workflows/docker-hub-ci.yaml +++ b/.github/workflows/docker-hub-ci.yaml @@ -2,7 +2,7 @@ name: Docker Hub CI on: push: - branches: [ "master" ] + branches: [ "add_arm" ] jobs: build: From 76d389e278d1ee4a49d9808a6bfe7d21fb199b64 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Fri, 9 Dec 2022 16:48:27 -0800 Subject: [PATCH 3/3] add automatic build of arm and x86 when pushing to master branch --- .github/workflows/docker-hub-ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-hub-ci.yaml b/.github/workflows/docker-hub-ci.yaml index 4ca4356..618e919 100644 --- a/.github/workflows/docker-hub-ci.yaml +++ b/.github/workflows/docker-hub-ci.yaml @@ -2,7 +2,7 @@ name: Docker Hub CI on: push: - branches: [ "add_arm" ] + branches: [ "master" ] jobs: build: