-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 922 Bytes
/
Copy pathrelease.yml
File metadata and controls
35 lines (30 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Publish Release
on:
release:
types: [published]
jobs:
prepare-tags:
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
steps:
- name: Lowercase repository name
id: repo
run: echo "LOWERCASE_REPO=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ env.LOWERCASE_REPO }}
tags: |
type=semver,pattern={{version}}
type=raw,value=latest
test:
uses: ./.github/workflows/reusable-unittests.yml
build-image:
needs: [prepare-tags, test]
uses: ./.github/workflows/reusable-docker-build.yml
with:
tags: ${{ needs.prepare-tags.outputs.tags }}
labels: ${{ needs.prepare-tags.outputs.labels }}