Skip to content

Instantly share code, notes, and snippets.

@Danielfenghk
Forked from olgac/.gitlab-ci.yml
Created August 23, 2022 07:55
Show Gist options
  • Save Danielfenghk/f37b1a766567a3947f3be9cc9b357143 to your computer and use it in GitHub Desktop.
Save Danielfenghk/f37b1a766567a3947f3be9cc9b357143 to your computer and use it in GitHub Desktop.
GitLab .gitlab-ci.yml
stages:
- Setup
- Deploy
Permissions:
stage: Setup
image: alpine:3.11.2
tags:
- gitlab
script:
- apk --no-cache add -q curl jq
- cd setup && chmod +x setup.sh && ./setup.sh
GitLab:
stage: Deploy
image: docker:19.03.5
when: manual
allow_failure: false
tags:
- gitlab
script:
- docker stack deploy -c gitlab/docker-compose.yml gitlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment