updating repo reference and optimizing build steps

This commit is contained in:
root 2023-10-28 14:42:44 +00:00
parent aca659fc8d
commit ead25bb437
2 changed files with 11 additions and 2 deletions

View File

@ -18,4 +18,13 @@ steps:
- docker login -u $${REGISTRY_USER} -p $${REGISTRY_PASSWORD} git.nixc.us
- docker compose build
- docker compose push
- docker compose rm -f
deploy:
name: deploy
image: docker:latest
secrets: [REGISTRY_USER, REGISTRY_PASSWORD]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker login -u $${REGISTRY_USER} -p $${REGISTRY_PASSWORD} git.nixc.us
- docker stack deploy --with-registry-auth -c ./top.yml top

View File

@ -5,4 +5,4 @@ services:
build:
context: . # assuming Dockerfile is in the current directory
dockerfile: Dockerfile
image: codeberg.org/dowerent/ubuntu-webtop:latest
image: codeberg.org/dowerent/top:latest