Skip to content

Commit

Permalink
Update GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinRay97 committed Nov 12, 2024
1 parent fca94bc commit b2209af
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build-connectors-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ on:
- "mysql/*"
- "oracle/*"

permissions:
contents: read
packages: write # Allows pushing to GHCR
id-token: write # Required for authenticating with GHCR

jobs:
docker-build:
runs-on: ubuntu-latest
Expand All @@ -22,6 +17,11 @@ jobs:
outputs:
release_tag: ${{ steps.extract_tag.outputs.tag }}

permissions:
contents: read
packages: write # Allows pushing to GHCR
id-token: write # Required for authenticating with GHCR

steps:
- name: Checkout repository
if: contains(github.ref, matrix.database)
Expand All @@ -38,6 +38,13 @@ jobs:
# Construct the Docker tag
echo "docker_tag=ghcr.io/hasura/ndc-jvm-${DB_TYPE}:${VERSION}" >> $GITHUB_OUTPUT
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
if: contains(github.ref, matrix.database)
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit b2209af

Please sign in to comment.