Skip to content

Merge pull request #1089 from n-kegra/zero-owner #9

Merge pull request #1089 from n-kegra/zero-owner

Merge pull request #1089 from n-kegra/zero-owner #9

Workflow file for this run

name: release
on:
push:
tags:
- v*.*.*
branches-ignore:
- '**'
env:
IMAGE_NAME: booq-ui
jobs:
image:
name: Build Docker Image
runs-on: ubuntu-latest
steps:
- name: Set IMAGE_TAG env
run: echo IMAGE_TAG=$(echo ${GITHUB_REF:11}) >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: traptitech
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
ghcr.io/traptitech/${{ env.IMAGE_NAME }}:latest
ghcr.io/traptitech/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}