Skip to content

Commit

Permalink
Update docker-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinguy authored Nov 12, 2024
1 parent 7526914 commit 22ac345
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- main


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -28,18 +29,23 @@ jobs:
context: docker/docker/worker-cli
component: worker-cli




steps:
- name: Checkout code
uses: actions/checkout@v4


- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Log in to GitHub Container Registry
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}


- name: Build and push Docker image
uses: docker/[email protected]
Expand All @@ -49,5 +55,5 @@ jobs:
platforms: linux/amd64, linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}/betterscan-${{ matrix.component }}:latest
ghcr.io/${{ github.repository }}/betterscan-${{ matrix.component }}:${{ github.sha }}
tcosolutions/betterscan-${{ matrix.component }}:latest
tcosolutions/betterscan-${{ matrix.component }}:${{ github.sha }}

0 comments on commit 22ac345

Please sign in to comment.