API: #32
Workflow file for this run
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: Docker | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+** | |
jobs: | |
release: | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prepare Version | |
id: prep | |
run: | | |
echo ::set-output name=version::${GITHUB_REF#refs/tags/v} | |
- name: Login to GitHub Docker Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
tags: | | |
ghcr.io/itcr-uni-luebeck/termite:latest | |
ghcr.io/itcr-uni-luebeck/termite:${{ steps.prep.outputs.version }} | |
push: true |