Merge pull request #6317 from gabriel-samfira/add-github-packages-login

Authenticate against ghcr.io
This commit is contained in:
Derek McGowan 2021-12-02 09:17:37 -08:00 committed by GitHub
commit 2190192b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,9 @@ on:
required: true required: true
default: westeurope default: westeurope
permissions:
packages: write
env: env:
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUB_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUB_ID }}
DEFAULT_ADMIN_USERNAME: azureuser DEFAULT_ADMIN_USERNAME: azureuser
@ -143,6 +146,13 @@ jobs:
service_account_key: ${{ secrets.GCP_SA_KEY }} service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true export_default_credentials: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push images - name: Build and push images
shell: bash shell: bash
run: | run: |