mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2025-04-01 19:33:50 +01:00
27 lines
601 B
YAML
27 lines
601 B
YAML
version: '3'
|
|
|
|
vars:
|
|
IMAGE: q3rcon-proxy
|
|
|
|
tasks:
|
|
build:
|
|
desc: Build the Docker image
|
|
cmds:
|
|
- docker build -t {{.IMAGE}} -f docker/Dockerfile .
|
|
dir: .
|
|
|
|
login:
|
|
desc: Login to Github Container Registry
|
|
cmds:
|
|
- docker login ghcr.io -u {{.GHCR_USER}} --password-stdin <<< {{.GHCR_TOKEN}}
|
|
internal: true
|
|
|
|
push:
|
|
desc: Push the Docker image to Github Container Registry
|
|
deps:
|
|
- task: build
|
|
- task: login
|
|
cmds:
|
|
- docker tag {{.IMAGE}} ghcr.io/{{.GHCR_USER}}/{{.IMAGE}}:latest
|
|
- docker push ghcr.io/{{.GHCR_USER}}/{{.IMAGE}}:latest
|