Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Sep 23, 2023
1 parent 9301c49 commit a9b1fae
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .gitlab/release.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,22 @@ git describe:
reports:
dotenv: git.env

docker buildx:
stage: test
extends: .rules release
image: docker:20-git
needs: []
variables:
GIT_STRATEGY: none
artifacts:
paths:
- buildx
expire_in: 1 day
services: [ docker:20-dind ]
script:
- export DOCKER_BUILDKIT=1
- git clone https://github.com/docker/buildx ./docker-buildx
- docker build --platform=local -o . ./docker-buildx

build main image:
stage: test
extends: .rules release
needs: [ docker buildx ]
image: docker:20
image: docker:24
timeout: 2 hours
services:
- name: docker:20-dind
command: [ --experimental ] # Do we need this?
- name: docker:24-dind
variables:
COSIGN_YES: "true"
id_tokens:
SIGSTORE_ID_TOKEN:
aud: sigstore
before_script:
- mkdir -p ~/.docker/cli-plugins
- mv buildx ~/.docker/cli-plugins/docker-buildx
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- apk add --update cosign
- apk add --update cosign make
script:
- docker buildx create --use
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- make docker-push IMAGE=$PRODUCTION_IMAGE
- IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $PRODUCTION_IMAGE)
Expand Down

0 comments on commit a9b1fae

Please sign in to comment.