Skip to content

Commit

Permalink
Fix syntax error in CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvelsriram committed Aug 17, 2023
1 parent d03fa35 commit 8ebf16f
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,28 @@ jobs:
run: UTILS_TEST_IMAGE='utils-test:linux-arm64' bats test/test.bats

publish-production-image:
runs-on: ubuntu-20.04
needs: [check-linux-amd64-image, check-linux-arm64-image]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@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 DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push production Docker images
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
tags: arunvelsriram/utils:latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push production Docker images
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
tags: arunvelsriram/utils:latest

0 comments on commit 8ebf16f

Please sign in to comment.