Skip to content

Commit

Permalink
Use docker-login for Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
sixeyed committed Dec 29, 2024
1 parent e617ea0 commit ff1830c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/images-linux-amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ jobs:
images-linux-amd64:
runs-on: ubuntu-latest
steps:

- name: Registry login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- uses: actions/checkout@master

- name: Build and push Linux AMD64 images
working-directory: build
run: |
docker login -u $env:USER -p $env:TOKEN
./build.ps1 -Images
env:
USER: ${{ secrets.DOCKER_HUB_USERNAME }}
TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

0 comments on commit ff1830c

Please sign in to comment.