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