Skip to content
Snippets Groups Projects
Commit 905acb80 authored by schnarkus's avatar schnarkus
Browse files

set up secret db_pass

parent 1a61857f
No related branches found
No related tags found
No related merge requests found
Pipeline #68925 passed
...@@ -27,10 +27,12 @@ build_job: ...@@ -27,10 +27,12 @@ build_job:
when: always when: always
image: public.ecr.aws/docker/library/golang:1.21 image: public.ecr.aws/docker/library/golang:1.21
script: | script: |
echo "$DB_PASSWORD" > db_pass
GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o artifact.bin ./*.go GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o artifact.bin ./*.go
artifacts: artifacts:
paths: paths:
- artifact.bin - artifact.bin
- db_pass
expire_in: 5 min expire_in: 5 min
publish_job: publish_job:
......
...@@ -13,7 +13,6 @@ podman pull redis-server ...@@ -13,7 +13,6 @@ podman pull redis-server
# Run Redis container with persistent storage # Run Redis container with persistent storage
podman run -d \ podman run -d \
-v ./redis/conf:/usr/local/etc/redis \
-p $REDIS_PORT:$REDIS_PORT \ -p $REDIS_PORT:$REDIS_PORT \
--name $REDIS_CONTAINER_NAME \ --name $REDIS_CONTAINER_NAME \
redis redis-server --save 60 1 --loglevel warning redis redis-server --save 60 1 --loglevel warning
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment