Skip to content

Merge pull request #10 from swisstopo/GSNGM-1178_move_to_GH_packages #49

Merge pull request #10 from swisstopo/GSNGM-1178_move_to_GH_packages

Merge pull request #10 from swisstopo/GSNGM-1178_move_to_GH_packages #49

Workflow file for this run

name: Docker
on:
push:
tags:
- 'v*'
- 'int*'
- 'prod*'
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/swisstopo/swissgeol-viewer-app-abbreviator
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=match,pattern=int|prod
flavor: |
latest=false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}