Skip to content

Commit b3ea6cb

Browse files
committed
cd: update image tagging for easier deployment
1 parent 5b16d1b commit b3ea6cb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
ghcr.io/${{ steps.base-meta.outputs.REPO }}
3636
tags: |
3737
type=ref,event=branch
38-
type=sha
38+
type=sha,format=long
3939
type=raw,value=latest,enable={{is_default_branch}}
4040
4141
- name: Login to GitHub Container Registry
@@ -59,4 +59,5 @@ jobs:
5959

6060
- name: Push To Production
6161
run: |
62-
curl --request GET '${{ secrets.DEPLOYMENT_WEBHOOK_URL }}' --header 'Authorization: Bearer ${{ secrets.DEPLOYMENT_TOKEN }}'
62+
curl '${{ secrets.DEPLOYMENT_WEBHOOK_URL }}' \
63+
--header 'Authorization: Bearer ${{ secrets.DEPLOYMENT_TOKEN }}'

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: '3'
22
services:
33
web:
4-
image: 'ghcr.io/errorerrorerror/erikbautista.dev:${COOLIFY_BRANCH:-latest}'
4+
image: 'ghcr.io/errorerrorerror/erikbautista.dev:sha-${SOURCE_COMMIT:?error}'
55
expose:
66
- 8080

0 commit comments

Comments
 (0)