Attempt using podman for building image

Retain consistency across services

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-11-27 12:24:37 +05:30
parent 6d5fb61856
commit 730c4c3d32
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -1,15 +1,14 @@
docker-build:
image: docker:latest
image: quay.io/podman/stable:latest
stage: build
services:
- docker:dind
before_script:
- apk add make git
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
- dnf -y install git make
- ln -s /usr/bin/podman /usr/bin/docker
- echo "$DOCKER_PASSWORD" | podman login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
variables:
GO111MODULE: "on"
GOPATH: "/root/go"
script:
- make build-image
- docker tag traefik/traefik registry.baalajimaestro.me/baalajimaestro/traefik:latest
- docker push registry.baalajimaestro.me/baalajimaestro/traefik:latest
- podman tag traefik/traefik registry.baalajimaestro.me/baalajimaestro/traefik:latest
- podman push registry.baalajimaestro.me/baalajimaestro/traefik:latest