Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
remove unless docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Mar 21, 2023
1 parent e43da12 commit 565955c
Showing 1 changed file with 0 additions and 92 deletions.
92 changes: 0 additions & 92 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ stages:
- test
- broker
- simulation
- artifact
- release
- publish
# - deploy

Expand Down Expand Up @@ -113,26 +111,6 @@ test-simulation:
- ./gosd database seed
- make test-simulation

build-binary:
stage: artifact
script:
- make
artifacts:
paths:
- gosd
expire_in: 1 week

build image:
image: docker:20.10.5
stage: artifact
services:
- docker:20.10.5-dind
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
script:
- docker build --tag $CONTAINER_CANARY_IMAGE .
- docker push $CONTAINER_CANARY_IMAGE

#build image:
# stage: artifact
# image: quay.io/buildah/stable
Expand All @@ -153,76 +131,6 @@ build image:
# - buildah images
# - buildah push $IMAGE_NAME

image branch:
image: docker:20.10.5
stage: release
services:
- docker:20.10.5-dind
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
variables:
CONTAINER_IMAGE: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_NAME}:latest
script:
- docker pull $CONTAINER_CANARY_IMAGE
- docker tag $CONTAINER_CANARY_IMAGE $CONTAINER_IMAGE
- docker push $CONTAINER_IMAGE

image latest:
image: docker:20.10.5
stage: release
services:
- docker:20.10.5-dind
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
variables:
CONTAINER_IMAGE: ${CI_REGISTRY_IMAGE}/image:latest
script:
- docker pull $CONTAINER_CANARY_IMAGE
- docker tag $CONTAINER_CANARY_IMAGE $CONTAINER_IMAGE
- docker push $CONTAINER_IMAGE
only:
- master

image release:
image: docker:20.10.5
stage: release
services:
- docker:20.10.5-dind
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
variables:
CONTAINER_IMAGE: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_TAG}:latest
script:
- docker pull $CONTAINER_CANARY_IMAGE
- docker tag $CONTAINER_CANARY_IMAGE $CONTAINER_IMAGE
- docker push $CONTAINER_IMAGE
only:
- tags

#publish ghcr:
# image: docker:20.10.5
# stage: publish
# services:
# - docker:20.10.5-dind
# before_script:
# - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
# - docker login -u ${GHCR_REGISTRY_USER} -p ${GHCR_REGISTRY_PASSWORD} ghcr.io
# variables:
# CONTAINER_RELEASE_IMAGE: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_TAG}:latest
# script:
# - docker pull $CONTAINER_RELEASE_IMAGE
# # hash
# - docker tag $CONTAINER_RELEASE_IMAGE ghcr.io/sb-im/developer/gosd:${CI_COMMIT_SHORT_SHA}
# - docker push ghcr.io/sb-im/developer/gosd:${CI_COMMIT_SHORT_SHA}
# # version lstrip('v')
# - docker tag $CONTAINER_RELEASE_IMAGE ghcr.io/sb-im/developer/gosd:${CI_COMMIT_TAG#v}
# - docker push ghcr.io/sb-im/developer/gosd:${CI_COMMIT_TAG#v}
# # latest
# - docker tag $CONTAINER_RELEASE_IMAGE ghcr.io/sb-im/developer/gosd:latest
# - docker push ghcr.io/sb-im/developer/gosd:latest
# only:
# - tags

publish customregistry:
image: docker:20.10.5
stage: publish
Expand Down

0 comments on commit 565955c

Please sign in to comment.