Merge pull request #6317 from gabriel-samfira/add-github-packages-login
Authenticate against ghcr.io
This commit is contained in:
commit
2190192b54
10
.github/workflows/build-test-images.yml
vendored
10
.github/workflows/build-test-images.yml
vendored
@ -19,6 +19,9 @@ on:
|
||||
required: true
|
||||
default: westeurope
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
env:
|
||||
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUB_ID }}
|
||||
DEFAULT_ADMIN_USERNAME: azureuser
|
||||
@ -143,6 +146,13 @@ jobs:
|
||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||
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
|
||||
shell: bash
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user