Unngå navikt/ prefiks på bygd ung-sak-web image. #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy ung-sak-web | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
- '.gitignore' | |
- 'CODEOWNERS' | |
branches: | |
- ung-sak-legacy-entrypoint-deploy-WIP | |
jobs: | |
build-deploy: | |
name: Build and deploy Docker image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
env: | |
CLUSTER: dev-gcp | |
steps: | |
- name: Hente kode | |
uses: actions/checkout@v4 | |
- name: Setup + Install | |
uses: ./.github/actions/setup-install | |
with: | |
npmAuthToken: ${{ secrets.READER_TOKEN }} | |
- name: Bygge dist | |
run: yarn build:ung | |
- name: Build and push to docker registry | |
uses: navikt/sif-gha-workflows/.github/actions/maven/build-push-docker-image@custom-image-name | |
id: docker-push | |
with: | |
image_base_name: 'ung-sak-web' | |
without_navikt_prefix: true | |
#Konfigurerer for bygging av ung docker image: | |
build-args: | | |
featureToggles=ung.feature-toggles.json | |
proxyConfig=ung.proxy.nginx | |
appVariant=ung | |
labels: | | |
org.opencontainers.image.title=ung-sak-web | |
org.opencontainers.image.description=Frontend for ung-sak | |
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | |
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
push-image: true | |
# TODO enable when build is tested to work and deploy config for ung-sak-web is prepared | |
# - name: Deploy to nais | |
# uses: nais/deploy/actions/deploy@v2 | |
# env: | |
# CLUSTER: ${{ env.CLUSTER }} | |
# RESOURCE: deploy/${{ env.CLUSTER }}-k9saksbehandling.yml | |
# VARS: deploy/dev-next1.yaml | |
# VAR: image=${{ steps.docker-push.outputs.image }} |