This commit is contained in:
onyx-and-iris 2025-03-16 01:34:01 +00:00
parent 916d2a2d86
commit 16e5e9c010

View File

@ -1,16 +1,19 @@
version: '3'
vars:
IMAGE: q3rcon-proxy
tasks:
build:
desc: Build the Docker image
cmds:
- docker build -t q3rcon-proxy -f docker/Dockerfile .
- docker build -t {{.IMAGE}} -f docker/Dockerfile .
dir: .
login:
desc: Login to Github Container Registry
cmds:
- docker login ghcr.io -u onyx-and-iris --password-stdin <<< {{.GHCR_TOKEN}}
- docker login ghcr.io -u {{.GHCR_USER}} --password-stdin <<< {{.GHCR_TOKEN}}
internal: true
push:
@ -19,5 +22,5 @@ tasks:
- task: build
- task: login
cmds:
- docker tag q3rcon-proxy ghcr.io/onyx-and-iris/q3rcon-proxy:latest
- docker push ghcr.io/onyx-and-iris/q3rcon-proxy:latest
- docker tag {{.IMAGE}} ghcr.io/{{.GHCR_USER}}/{{.IMAGE}}:latest
- docker push ghcr.io/{{.GHCR_USER}}/{{.IMAGE}}:latest