This repository has been archived on 2023-05-06. You can view files and clone it, but cannot push or open issues or pull requests.
pleroma-ansible-playbook/.gitlab/ci/templates/docker.gitlab-ci.yml

30 lines
587 B
YAML
Raw Normal View History

---
.install-make: &install-make
- apk add --no-cache make
.docker-build-setup:
image: docker:19.03.8
services:
- docker:19.03.8-dind
.dockerfile-lint:
stage: test
image: hadolint/hadolint:v1.18.0-alpine
script:
- hadolint ${DOCKERFILE}
.dockerbuild-test:
stage: test
extends: .docker-build-setup
before_script:
- *install-make
.docker-publish:
stage: publish
extends: .docker-build-setup
before_script:
- *install-make
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
after_script:
- docker logout ${CI_REGISTRY}