ci: hard-code the dockerhub username

This commit is contained in:
Amin Yahyaabadi 2024-03-31 22:44:39 -07:00
parent 0487e80610
commit f2ab88cd91
1 changed files with 3 additions and 3 deletions

View File

@ -249,7 +249,7 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
with: with:
username: ${{ vars.DOCKERHUB_USERNAME }} username: aminya
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push - name: Build and push
@ -258,7 +258,7 @@ jobs:
context: . context: .
file: ./dev/docker/ci/${{ matrix.container.file }} file: ./dev/docker/ci/${{ matrix.container.file }}
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }},${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest tags: aminya/${{ matrix.container.image }}:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}:latest
- name: Test - name: Test
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -266,7 +266,7 @@ jobs:
context: . context: .
file: ./dev/docker/examples/${{ matrix.container.file }} file: ./dev/docker/examples/${{ matrix.container.file }}
push: false push: false
tags: ${{ vars.DOCKERHUB_USERNAME }}/test-${{ matrix.container.image }}:${{ matrix.container.tag }} tags: aminya/test-${{ matrix.container.image }}:${{ matrix.container.tag }}
Release: Release:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')