5 Commits

Author SHA1 Message Date
tuanvu
6335b425f7 install docker without sudo 2026-02-16 18:57:38 +01:00
tuanvu
c198419f58 install docker 2026-02-16 18:55:18 +01:00
tuanvu
39ae214f78 3rd can use shell? 2026-02-16 18:51:50 +01:00
tuanvu
28d90e66dd rebuild 2026-02-16 18:15:14 +01:00
tuanvu
d1fa4044e1 change docker build 2026-02-16 17:45:39 +01:00

View File

@@ -62,15 +62,14 @@ build_frontend:
# Build & Push Docker frontend
build_docker_frontend:
stage: package
image: docker:latest
services:
- docker:dind
tags:
- docker
- shell
dependencies:
- check_app_update
- build_frontend
script:
- apt update
- apt install -y docker.io
- source variables.env || true
- if [ "$NEW_COMMIT" != "true" ]; then
echo "No new commit, skipping build";
@@ -80,7 +79,6 @@ build_docker_frontend:
- docker build -t "$IMAGE_FRONTEND" doodlestudent/front
- docker push "$IMAGE_FRONTEND"
- docker logout
# Deploy to Production
deploy_production:
stage: deploy
@@ -88,6 +86,8 @@ deploy_production:
dependencies:
- build_docker_frontend
- check_app_update
tags:
- docker
before_script:
- apk add --no-cache openssh-client docker-cli
- mkdir -p ~/.ssh