Update docker-buildx-bake-build.yml

new login method for ghcr
This commit is contained in:
bjoernellens1 2023-10-16 08:23:43 +02:00 committed by GitHub
parent 896a83c056
commit 09889b9168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,9 +25,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
run: echo ${{ secrets.GHCR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
#- name: Login to GitHub Container Registry
# run: echo ${{ secrets.GHCR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GHCR_PAT}}
- name: Build and Push Docker Compose Services
run: |
docker buildx bake --push