Update 2 files

- /gitlabci/docker-hub.yml
- /.gitlab-ci.yml
This commit is contained in:
Fred 2024-08-01 12:27:21 +00:00
parent c5a63a6730
commit 6da3c49222
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,10 @@ workflow:
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
# Build on tmpfs
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/tmpfs/$CI_PROJECT_NAME/$CI_COMMIT_BRANCH
stages:
- quality
- Docker-hub-build

View File

@ -18,7 +18,6 @@ docker-hub-build:
- export SQUID_VERSION=$(curl -s http://www.squid-cache.org/Versions/v6/ | egrep -m 1 -oh squid-.*.tar.gz | cut -d '"' -f1)
- docker build --build-arg SQUID_VERSION=$SQUID_VERSION --pull -t $CONTAINER_BUILD_NOPROD_NAME_AMD64 .
- docker push $CONTAINER_BUILD_NOPROD_NAME_AMD64
- chown -Rf 1161 $CI_BUILDS_DIR
.services-amd64:
services:
@ -72,8 +71,6 @@ push-docker-hub:
- docker push $HUB_REGISTRY_IMAGE:latest-amd64
- docker tag $CONTAINER_BUILD_NOPROD_NAME_AMD64 $HUB_REGISTRY_IMAGE:latest
- docker push $HUB_REGISTRY_IMAGE:latest
# Restore rights
- chown -Rf root $CI_BUILDS_DIR
variables:
GIT_STRATEGY: none
needs: ["docker-hub-test"]