Skip to content

Commit

Permalink
[KAIZEN-0] migrate to Google Artifact Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
abrhanav committed Dec 15, 2023
1 parent e125a61 commit ec91870
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Build, push, and deploy
on: [push]

env:
IMAGE: ghcr.io/${{ github.repository }}/modiapersonoversikt:${{ github.sha }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
CI: true
TZ: Europe/Oslo
Expand Down Expand Up @@ -32,12 +31,12 @@ jobs:
run: npm run upload-sourcemaps
- name: Publish Docker image
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master' || github.ref == env.Q1_TEST_BRANCH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo ${GITHUB_TOKEN} | docker login ghcr.io -u ${GITHUB_REPOSITORY} --password-stdin
docker build --tag ${IMAGE} .
docker push ${IMAGE}
uses: nais/docker-build-push@v0
id: docker-build-push
with:
team: team-personoversikt
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
- name: Deploy to Q1 (Test branch)
uses: nais/deploy/actions/deploy@v1
if: github.ref == env.Q1_TEST_BRANCH
Expand Down

0 comments on commit ec91870

Please sign in to comment.