Skip to content

Release 1.1.0

Release 1.1.0 #12

Workflow file for this run

name: build docker
on:
push:
tags:
- v*
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to coding registry
uses: docker/login-action@v2
with:
registry: bangbang93-docker.pkg.coding.net
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract Git Tag
run: echo "GIT_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
env:
IMAGE_TAG: ${{ env.GIT_TAG }}
IMAGE_NAME: bangbang93-docker.pkg.coding.net/mirrors/bangbang93/freyja
with:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
${{ env.IMAGE_NAME }}:latest
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}