Skip to content

Commit

Permalink
change the registry/repo for the image
Browse files Browse the repository at this point in the history
  • Loading branch information
ram-vibhul committed Feb 27, 2024
1 parent 42de613 commit c8c257d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ on:
push:

env:
PROJECT_ID: ${{ secrets.G_PROJECT_ID }}
REGISTRY: eu.gcr.io
PROJECT_ID: severalnines-public
REGISTRY: europe-docker.pkg.dev
IMAGE: ${{ github.event.repository.name }}
REPO: ccx

jobs:
build-publish:
Expand All @@ -23,17 +24,17 @@ jobs:

- uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ env.PROJECT_ID }}
project_id: ${{ secrets.G_PROJECT_ID }}

- name: Configure docker
run: |-
gcloud --quiet auth configure-docker
gcloud --quiet auth configure-docker "$REGISTRY"
- name: Build docker image
run: |-
docker build \
--tag "$REGISTRY/$PROJECT_ID/$IMAGE:build-$GITHUB_RUN_NUMBER" \
--tag "$REGISTRY/$PROJECT_ID/$IMAGE:latest" \
--tag "$REGISTRY/$PROJECT_ID/$REPO/$IMAGE:build-$GITHUB_RUN_NUMBER" \
--tag "$REGISTRY/$PROJECT_ID/$REPO/$IMAGE:latest" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
--build-arg GITHUB_RUN_NUMBER="$GITHUB_RUN_NUMBER" \
Expand All @@ -43,4 +44,4 @@ jobs:
# Push the Docker image to Google Container Registry
- name: Publish docker image
run: |-
docker push "$REGISTRY/$PROJECT_ID/$IMAGE:latest"
docker push "$REGISTRY/$PROJECT_ID/$REPO/$IMAGE:latest"

0 comments on commit c8c257d

Please sign in to comment.