-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.23 KB
/
cd_next.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CD Develop
on:
pull_request:
branches:
- next
types:
- closed
permissions:
packages: write
contents: write
issues: write
id-token: write
actions: read
jobs:
pre_release:
name: Create a New Pre-Release
runs-on: ubuntu-latest
outputs:
version: ${{ steps.release.outputs.version }}
steps:
- name: Make Release
id: release
uses: pagopa/github-actions-template/maven-release@4a4c25ce28feeec9e619b3132b5327f52023d441 # v1.14.2
with:
semver: buildNumber
github_token: ${{ secrets.BOT_TOKEN_GITHUB }}
beta: false
skip_ci: false
prerelease: true
only_tag: true
image:
needs: [ pre_release ]
name: Build and Push Docker Image
runs-on: ubuntu-latest
steps:
- name: Build and Push
uses: pagopa/github-actions-template/ghcr-build-push@d91a1fd0b913c9830589be5d86cdb71c90813fae # v1.5.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.pre_release.outputs.version }}
deploy:
name: Deploy in DEV
needs: [ image ]
uses: ./.github/workflows/deploy_with_github_runner.yml
with:
environment: 'dev'
secrets: inherit