Skip to content

Commit

Permalink
Update publish-on-release.yaml and see what happens when manually tri…
Browse files Browse the repository at this point in the history
…ggered
  • Loading branch information
miker985 committed Sep 18, 2024
1 parent b4d7953 commit f605248
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/publish-on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,33 @@ name: Create and publish a Docker image on release
on:
push:
branches: ['release']
workflow_dispatch:

env:
REGISTRY: ghcr.io
REGISTRY: us-docker.pkg.dev/uwit-mci-iam/containers
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image-to-ghcr:
build-and-push-image-to-gar:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to ghcr.io Container registry
# should this be pinned?
# https://github.com/docker/login-action
uses: docker/[email protected]
- name: Auth to Cloud
uses: 'uwit-iam/action-auth-artifact-registry@main'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
credentials: "${{ secrets.MCI_GCLOUD_AUTH_JSON }}"

- name: Extract metadata (tags + labels) for Docker
id: meta
# should this be pinned?
# https://github.com/docker/metadata-action
uses: docker/metadata-action@v4.4.0
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

Expand Down

0 comments on commit f605248

Please sign in to comment.