Skip to content

Commit b509047

Browse files
Update username/password env vars. Use repository secret rather than env.
1 parent 3935b6d commit b509047

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ env:
1313
jobs:
1414
push:
1515
if: (github.ref == 'refs/heads/main')
16-
environment: docker push
1716
runs-on: ubuntu-latest
1817
strategy:
1918
matrix:
@@ -25,7 +24,7 @@ jobs:
2524
- uses: docker/setup-buildx-action@v3
2625
- name: build images
2726
run: |
28-
docker login --username ${{ vars.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
27+
docker login --username ${{ vars.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_PASSWORD }}
2928
docker buildx build --push --platform linux/amd64,linux/arm64 --tag ${{ env.DOCKER_REPO }}:pg${{ matrix.version }} --build-arg VERSION=${{ matrix.version }} .
3029
if [ "${{ matrix.version }}" = "${{ env.LATEST }}" ]; then
3130
docker buildx build --push --platform linux/amd64,linux/arm64 --tag ${{ env.DOCKER_REPO }}:latest --build-arg VERSION=${{ matrix.version }} .

0 commit comments

Comments
 (0)