Skip to content

Instantly share code, notes, and snippets.

@olgac
Created January 9, 2020 16:35
Show Gist options
  • Save olgac/a78858be0acf6ce58e19bc5f52c2f584 to your computer and use it in GitHub Desktop.
Save olgac/a78858be0acf6ce58e19bc5f52c2f584 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