-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (34 loc) · 895 Bytes
/
deploy.yml
File metadata and controls
38 lines (34 loc) · 895 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
36
37
38
name: deploy-backend
on:
pull_request:
types:
- closed
branches:
- main
jobs:
docker-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Build image
uses: ./.github/actions/docker-build-or-tag
with:
token: ${{ secrets.GH_TOKEN }}
image-name: job-winner
dockerfile_dir: .
update-deploy-repo-tag:
needs:
- docker-publish
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Generate GitHub App token
id: app-token
uses: ./.github/actions/update-deployment-repo
with:
app-name: job-winner
deployment-type: backend
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}