Added docker building.

This commit is contained in:
2023-02-20 01:15:47 +00:00
parent 70224f337a
commit 02b5a13902
8 changed files with 64 additions and 36 deletions

View File

@ -11,6 +11,8 @@ stages:
.test-template:
tags:
- kube
except:
- master
image: rust:1.67.1-buster
stage: test
interruptible: true
@ -35,3 +37,16 @@ fmt:
script:
- rustup component add rustfmt
- pre-commit run fmt -av
build_img:
tags:
- kube
only:
- master
image:
name: r.j3ss.co/img
entrypoint: [""]
script:
- img login --password "${DOCKER_PASSWORD}" --username "${DOCKER_USER}" "${DOCKER_REGISTRY}"
- img build --no-console -t docker.le-memese.com/bots/s3bot:latest .
- img push docker.le-memese.com/bots/s3bot:latest