-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.36 KB
/
publish-branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Publish test branch
on:
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: test
permissions:
id-token: write
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Get version
id: get-version
uses: ./.github/actions/get-current-version
- name: "Publish image"
uses: ./.github/actions/publish-image
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dockerImageBaseName: ghcr.io/altinn/altinn-correspondence
imageTag: ${{ steps.get-version.outputs.imageTag }}
- name: Release version
uses: ./.github/actions/release-version
with:
region: norwayeast
environment: test
imageTag: ${{ steps.get-version.outputs.imageTag }}
AZURE_NAME_PREFIX: ${{ secrets.AZURE_NAME_PREFIX }}
AZURE_ENVIRONMENT_KEY_VAULT_NAME: ${{ secrets.AZURE_ENVIRONMENT_KEY_VAULT_NAME }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
PLATFORM_BASE_URL: ${{ secrets.PLATFORM_BASE_URL }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
STORAGE_ACCOUNT_NAME: ${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}