-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
32 lines (27 loc) · 953 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (c) 2021 aasaam software development group
image: docker:stable
services:
- docker:dind
stages:
- build
variables:
DOCKER_DRIVER: overlay2
before_script:
- docker login --username=$DOCKER_HUB_USER --password=$DOCKER_HUB_PASS
- docker login --username=$QUAY_HUB_USER --password=$QUAY_HUB_PASS quay.io
- docker login --username=$GITHUB_HUB_USER --password=$GITHUB_HUB_PASS docker.pkg.github.com
build:
stage: build
script:
# build
- docker build -f Dockerfile -t aasaam/whois-json .
# push
- |
docker push aasaam/whois-json
docker image tag aasaam/whois-json quay.io/aasaam/whois-json
docker push quay.io/aasaam/whois-json
docker image tag aasaam/whois-json docker.pkg.github.com/aasaam/whois-json/whois-json
docker push docker.pkg.github.com/aasaam/whois-json/whois-json
# remove image
- docker rmi aasaam/whois-json
coverage: '/TOTAL_COVERAGE_FOR_CI_F: \d+\.\d+/'