30 lines
737 B
YAML
Executable File
30 lines
737 B
YAML
Executable File
name: Release build and push docker image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'version.txt'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Read Version
|
|
id: version
|
|
run: echo "::set-output name=VERSION::$(cat version.txt)"
|
|
|
|
- name: Call common build workflow
|
|
uses: ./.github/actions/common-docker-build
|
|
with:
|
|
build_tags: |
|
|
jierka/obscreen:v${{ steps.version.outputs.VERSION }}
|
|
jierka/obscreen:latest
|
|
manifest_tags: type=semver,pattern=v${{ steps.version.outputs.VERSION }}
|
|
flavor: latest=true
|