Skip to content

Commit

Permalink
Fix docker push actions (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht authored Feb 19, 2023
1 parent f223f2c commit a482faa
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,31 @@ name: Build and push to Docker Hub

on:
push:
branches: ['main']
branches:
- 'main'

jobs:

build-and-push-image:
name: Build and push to Docker Hub
docker:
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: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit a482faa

Please sign in to comment.