Revert "Mount podman socket itself directly"

This reverts commit 9703c87f28.

Revert "Make the socker available on /var/run/docker.sock as well"

This reverts commit 3b0519f50e.

Revert "Dont enforce short name resolution"

This reverts commit 7f2f2abd2c.

Revert "Attempt using podman for building image"

This reverts commit 730c4c3d32.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-12-08 23:41:55 +05:30
parent 06c025a6d4
commit fc287f97f7
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -1,17 +1,13 @@
docker-build: docker-build:
image: quay.io/podman/stable:latest image: docker:dind
stage: build stage: build
before_script: before_script:
- dnf -y install git make - apk add make git
- sed -i 's/short-name-mode="enforcing"/short-name-mode="permissive"/g' /etc/containers/registries.conf - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
- ln -s /usr/bin/podman /usr/bin/docker
- podman system service --time 0 unix://var/run/podman/podman.sock &
- ln -s /var/run/podman/podman.sock /var/run/docker.sock
- echo "$DOCKER_PASSWORD" | podman login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
variables: variables:
GO111MODULE: "on" GO111MODULE: "on"
GOPATH: "/root/go" GOPATH: "/root/go"
script: script:
- make build-image - make build-image
- podman tag traefik/traefik registry.baalajimaestro.me/baalajimaestro/traefik:latest - docker tag traefik/traefik registry.baalajimaestro.me/baalajimaestro/traefik:latest
- podman push registry.baalajimaestro.me/baalajimaestro/traefik:latest - docker push registry.baalajimaestro.me/baalajimaestro/traefik:latest