Skip to content

Merge pull request #45 from metno/update_docs #1

Merge pull request #45 from metno/update_docs

Merge pull request #45 from metno/update_docs #1

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
name: Release ${{ matrix.service }}
runs-on: ubuntu-latest
strategy:
matrix:
service:
- correctedforecaster
- healthz
- jsonfrontend
- moxfrontend
- rawdataforecaster
- xmlfrontend
steps:
- uses: actions/checkout@v4
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
fortiregistry.azurecr.io/${{ matrix.service }}
ghcr.io/${{ github.repository }}/${{ matrix.service }}
tags: |
type=semver,pattern=v{{major}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
- name: Login to ACR
uses: docker/login-action@v4
with:
registry: fortiregistry.azurecr.io
username: ${{ secrets.AZURE_REGISTRY_USERNAME }}
password: ${{ secrets.AZURE_REGISTRY_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.service }}/build/package/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}