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
|
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: |
|
||||||
|
Loading…
Reference in New Issue
Block a user