From 905acb8079c44868f5b363a3e65c6a9e9961799e Mon Sep 17 00:00:00 2001 From: schnarkus <markus.simianer@yahoo.de> Date: Wed, 28 Aug 2024 18:30:34 +0200 Subject: [PATCH] set up secret db_pass --- .gitlab-ci.yml | 2 ++ local-environment/redis.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0156bca..76d202f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,10 +27,12 @@ build_job: when: always image: public.ecr.aws/docker/library/golang:1.21 script: | + echo "$DB_PASSWORD" > db_pass GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o artifact.bin ./*.go artifacts: paths: - artifact.bin + - db_pass expire_in: 5 min publish_job: diff --git a/local-environment/redis.sh b/local-environment/redis.sh index 81d4022..22850e6 100755 --- a/local-environment/redis.sh +++ b/local-environment/redis.sh @@ -13,7 +13,6 @@ podman pull redis-server # Run Redis container with persistent storage podman run -d \ - -v ./redis/conf:/usr/local/etc/redis \ -p $REDIS_PORT:$REDIS_PORT \ --name $REDIS_CONTAINER_NAME \ redis redis-server --save 60 1 --loglevel warning -- GitLab