mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix yml indentation
This commit is contained in:
parent
9837413a4f
commit
1fd257f361
@ -9,23 +9,23 @@ docker-build-dev:
|
|||||||
command: ["--experimental"]
|
command: ["--experimental"]
|
||||||
stage: build-dev
|
stage: build-dev
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == 'dev'
|
- if: $CI_COMMIT_BRANCH == 'dev'
|
||||||
environment:
|
environment:
|
||||||
name: development
|
name: development
|
||||||
before_script:
|
before_script:
|
||||||
- |
|
- |
|
||||||
apk --no-cache add curl
|
apk --no-cache add curl
|
||||||
latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p')
|
latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p')
|
||||||
echo "Using buildx version $latest_tag"
|
echo "Using buildx version $latest_tag"
|
||||||
curl -sSLo docker-buildx "https://github.com/docker/buildx/releases/download/$latest_tag/buildx-$latest_tag.linux-amd64"
|
curl -sSLo docker-buildx "https://github.com/docker/buildx/releases/download/$latest_tag/buildx-$latest_tag.linux-amd64"
|
||||||
chmod a+x docker-buildx
|
chmod a+x docker-buildx
|
||||||
mkdir -p ~/.docker/cli-plugins
|
mkdir -p ~/.docker/cli-plugins
|
||||||
mv docker-buildx ~/.docker/cli-plugins/docker-buildx
|
mv docker-buildx ~/.docker/cli-plugins/docker-buildx
|
||||||
docker version
|
docker version
|
||||||
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
- echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
- echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
tag=":$CI_COMMIT_REF_SLUG"
|
tag=":$CI_COMMIT_REF_SLUG"
|
||||||
@ -50,23 +50,23 @@ docker-build-prod:
|
|||||||
command: ["--experimental"]
|
command: ["--experimental"]
|
||||||
stage: build-prod
|
stage: build-prod
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
before_script:
|
before_script:
|
||||||
- |
|
- |
|
||||||
apk --no-cache add curl
|
apk --no-cache add curl
|
||||||
latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p')
|
latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p')
|
||||||
echo "Using buildx version $latest_tag"
|
echo "Using buildx version $latest_tag"
|
||||||
curl -sSLo docker-buildx "https://github.com/docker/buildx/releases/download/$latest_tag/buildx-$latest_tag.linux-amd64"
|
curl -sSLo docker-buildx "https://github.com/docker/buildx/releases/download/$latest_tag/buildx-$latest_tag.linux-amd64"
|
||||||
chmod a+x docker-buildx
|
chmod a+x docker-buildx
|
||||||
mkdir -p ~/.docker/cli-plugins
|
mkdir -p ~/.docker/cli-plugins
|
||||||
mv docker-buildx ~/.docker/cli-plugins/docker-buildx
|
mv docker-buildx ~/.docker/cli-plugins/docker-buildx
|
||||||
docker version
|
docker version
|
||||||
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
- echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
- echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
tag=""
|
tag=""
|
||||||
|
Loading…
Reference in New Issue
Block a user