Skip to content

Commit

Permalink
only push docker image for main branch (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwithmichael authored Dec 8, 2024
1 parent 855c0fd commit e22bd09
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@ on: [push]
jobs:
docker:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
Expand Down

0 comments on commit e22bd09

Please sign in to comment.