2024-04-25 05:20:54 +00:00
|
|
|
steps:
|
2024-04-26 04:46:17 +00:00
|
|
|
- name: lint
|
|
|
|
image: hadolint/hadolint:latest-alpine
|
|
|
|
commands:
|
|
|
|
- "hadolint Dockerfile"
|
2024-04-25 05:38:31 +00:00
|
|
|
- name: build
|
2024-04-25 05:20:54 +00:00
|
|
|
image: docker
|
|
|
|
commands:
|
|
|
|
- "docker login git.snyman.info -u $DOCKER_USERNAME -p $DOCKER_TOKEN"
|
|
|
|
- "docker build --build-arg FLARUM_VERSION=$CI_COMMIT_TAG -t git.snyman.info/raoul/flarum:$CI_COMMIT_TAG -t git.snyman.info/raoul/flarum:latest ."
|
|
|
|
- "docker push git.snyman.info/raoul/flarum:$CI_COMMIT_TAG"
|
|
|
|
- "docker push git.snyman.info/raoul/flarum:latest"
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
secrets:
|
|
|
|
- docker_username
|
|
|
|
- docker_token
|
|
|
|
when:
|
|
|
|
- event: tag
|