Skip to content

Commit ef19a83

Browse files
committed
cd: ensure adding latest tag for dockerimage if the branch is the default branch
1 parent 6a0548e commit ef19a83

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ jobs:
3535
ghcr.io/${{ steps.base-meta.outputs.REPO }}
3636
tags: |
3737
type=ref,event=branch
38-
type=semver,pattern={{version}}
39-
type=semver,pattern={{major}}.{{minor}}
40-
type=semver,pattern={{major}}
4138
type=sha
39+
type=raw,value=latest,enable={{is_default_branch}}
4240
4341
- name: Login to GitHub Container Registry
4442
uses: docker/login-action@v3

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ EXPOSE 8080
8080

8181
# Start the service when the image is run, default to listening on 8080 in production environment
8282
ENTRYPOINT ["./App"]
83-
CMD ["--env", "production", "--hostname", "0.0.0.0", "--port", "8080"]
83+
CMD ["--hostname", "0.0.0.0", "--port", "8080"]

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:
3-
app:
3+
web:
44
image: 'ghcr.io/errorerrorerror/erikbautista.dev:main'
55
ports:
66
- '8080:8080'

0 commit comments

Comments
 (0)