-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1.08 KB
/
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
name: "Release"
on:
push:
branches: ["main"]
release:
types: [published]
jobs:
publish-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Extract Tag Name
id: extract_tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: set env VERSION
id: version
run: export VERSION=${{ steps.extract_tag.outputs.tag }}
- name: Mirror + trigger CI
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
with:
args: https://gitlab-sml.din.developpement-durable.gouv.fr/num3-exploitation/deploiement-continu/gitlab-ci/applications/rapportnav-v2/rapportnav-v2.git
env:
FOLLOW_TAGS: "true"
FORCE_PUSH: "false"
GITLAB_HOSTNAME: "gitlab-sml.din.developpement-durable.gouv.fr"
GITLAB_USERNAME: ${{ github.actor }}
GITLAB_PASSWORD: ${{ secrets.GITLAB_MIRROR_TOKEN }}
GITLAB_PROJECT_ID: "num3-exploitation/deploiement-continu"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}