This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
fotochallenge/.gitea/workflows/publish.yml
Valentin Brandl 18d647b8b4
Some checks failed
/ Build App (push) Successful in 1m3s
Publish / tests (push) Successful in 1m2s
Publish / Publishing (push) Failing after 20s
Fix publish
2024-07-17 12:49:10 +02:00

36 lines
920 B
YAML

name: Publish
on:
push:
tags:
- 'v*'
jobs:
tests:
uses: ./.gitea/workflows/node.yml
publish:
name: Publishing
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Containerfile
push: true
tags: |
git.vbrandl.net/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
git.vbrandl.net/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}