Skip to content

Commit

Permalink
ci: build stable image
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed May 3, 2023
1 parent a71fd86 commit 2947cf0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@ build:
docker build . -t $CI_REGISTRY_IMAGE:latest
--cache-from $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE
only:
- dev

build-stable:
image: docker:20.10.16
stage: build
services:
- docker:20.10.16-dind
before_script:
- docker info
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:latest || true
- >
docker build . -t $CI_REGISTRY_IMAGE:stable
--cache-from $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE
only:
- main

deploy-dev:
stage: deploy
Expand Down

0 comments on commit 2947cf0

Please sign in to comment.