flarum-docker/.woodpecker.yaml
Raoul Snyman 66e58071ce
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
Add linting of the Dockerfile
2024-04-25 21:50:43 -07:00

20 lines
686 B
YAML

steps:
- name: lint
image: hadolint/hadolint:latest-alpine
commands:
- "hadolint --failure-threshold error Dockerfile"
- name: build
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