-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (38 loc) · 976 Bytes
/
release.yml
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
36
37
38
39
40
name: "Release"
on:
push:
tags:
- "v*"
jobs:
create_release:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version_tag.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Get Tag
if: startsWith(github.ref, 'refs/tags/v')
uses: olegtarasov/[email protected]
id: version_tag
with:
tagRegex: "v(.*)"
docker:
needs: ['create_release']
uses: "./.github/workflows/docker.yml"
with:
docker_target: production
platforms: linux/amd64,linux/arm64
version: ${{ inputs.version }}
image: ${{ vars.IMAGE }}
secrets:
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
REGISTRY: ${{ secrets.REGISTRY }}
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
build:
needs: ['create_release']
uses: "./.github/workflows/build.yml"
with:
version: ${{ inputs.version }}
latest: true