Skip to content

Commit

Permalink
fix: workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
kazimanzurrashid committed Sep 30, 2022
1 parent ea5f45c commit dad9577
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: CI
on: [push, pull_request]
env:
publishDockerImage: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
jobs:
ci:
runs-on: ubuntu-latest
env:
publishDockerImage: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -24,19 +24,19 @@ jobs:
- name: Upload coverage
uses: codecov/codecov-action@v3
- name: Set up QEMU
if: ${{ publishDockerImage }}
if: ${{ env.publishDockerImage }}
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
if: ${{ publishDockerImage }}
if: ${{ env.publishDockerImage }}
uses: docker/setup-buildx-action@v2
- name: DockerHub Login
if: ${{ publishDockerImage }}
if: ${{ env.publishDockerImage }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Image
if: ${{ publishDockerImage }}
if: ${{ env.publishDockerImage }}
uses: docker/build-push-action@v3
with:
push: true
Expand Down

0 comments on commit dad9577

Please sign in to comment.