Use podman for building

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-11-27 12:45:34 +05:30
parent 20f397135b
commit 3815af986b
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -1,10 +1,8 @@
docker-build:
image: docker:latest
image: quay.io/podman/stable:latest
stage: build
services:
- docker:dind
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
- echo "$DOCKER_PASSWORD" | podman login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
script:
- docker build . -t registry.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest
- docker push registry.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest
- podman build . -t registry.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest
- podman push registry.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest