Closed JuyeoungJun closed 3 years ago
In GitLab by @gm2202981 on Jun 7, 2021, 17:03
changed the description
In GitLab by @gm2202981 on Jun 7, 2021, 17:29
changed the description
In GitLab by @gm2202981 on Jun 8, 2021, 09:23
mentioned in merge request !7
In GitLab by @gm2202981 on Jun 8, 2021, 14:09
$ sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER docker login -u $DOCKERHUB_ID -p $DOCKERHUB_PASS
ssh: Could not resolve hostname gcloud-seoul-477ad223c8ae57ea56d3c6fd32491578: Name does not resolve
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 255
- apk upgrade && apk update
- apk add openssh-client
- apk add sshpass
- sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER docker login -u $DOCKERHUB_ID -p $DOCKERHUB_PASS
- sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER docker pull $IMAGE_NAME
- sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER "docker container stop $IMAGE_NAME && docker container rm $IMAGE_NAME || true"
- sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER docker run --name $IMAGE_NAME -p 80:80 -d $IMAGE_NAME
- sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER_IP docker login -u $DOCKERHUB_ID -p $DOCKERHUB_PASS
- sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER_IP docker pull $IMAGE_NAME
- sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER_IP "docker container stop $IMAGE_NAME && docker container rm $IMAGE_NAME || true"
- sshpass -p "$STAGING_SERVER_PASS" ssh -o StrictHostKeyChecking=no $STAGING_SERVER_USER@$STAGING_SERVER_IP docker run --name $IMAGE_NAME -p 80:80 -d $IMAGE_NAME
environment:
name: staging
url: $STAGING_SERVER_IP:80
In GitLab by @gm2202985 on Jun 8, 2021, 14:35
assigned to @gm2202985
In GitLab by @gm2202981 on Jun 8, 2021, 14:36
changed the description
In GitLab by @gm2202981 on Jun 8, 2021, 14:36
assigned to @gm2202981 and unassigned @gm2202985
In GitLab by @gm2202981 on Jun 8, 2021, 14:52
changed the description
In GitLab by @gm2202981 on Jun 8, 2021, 17:09
changed the description
In GitLab by @gm2202981 on Jun 7, 2021, 16:59
개요
CI/CD 파이프라인
cicd.drawio
참고자료
향후 계획