Skip to content

Merge pull request #95 from averak/feature/91-build-docker-image-afte… #1

Merge pull request #95 from averak/feature/91-build-docker-image-afte…

Merge pull request #95 from averak/feature/91-build-docker-image-afte… #1

Workflow file for this run

name: Build
on:
push:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: determine git tag
id: git_describe
run: |
TAG=$(git describe --tags --abbrev=1)
echo "::set-output name=tag::$TAG"
- name: build docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ steps.git_describe.outputs.tag }}