forked from SmartDropLabs/smartdrop-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 997 Bytes
/
Copy pathdeploy.yml
File metadata and controls
36 lines (31 loc) · 997 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
name: Deploy
on:
workflow_run:
workflows:
- CI
branches:
- main
types:
- completed
permissions:
contents: read
packages: write
jobs:
deploy:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build and push Docker image to GHCR
env:
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_NAME: ghcr.io/${{ github.repository }}
IMAGE_TAG: ${{ github.event.workflow_run.head_sha }}
run: |
echo "Stub deploy step for ${IMAGE_NAME}:${IMAGE_TAG}"
echo "Add GHCR push or external deployment integration here."
- name: Trigger production deployment
run: echo "Deploy placeholder"