ci: Switch to 4gb runner for now & remove dedicated deploy branch
This commit is contained in:
parent
d3ee409112
commit
8e2398c234
1 changed files with 3 additions and 44 deletions
|
@ -36,58 +36,21 @@ build:
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
package:
|
package:
|
||||||
stage: package
|
|
||||||
interruptible: true
|
|
||||||
image: quay.io/sheogorath/build-ah-engine:latest
|
|
||||||
tags:
|
|
||||||
- privileged
|
|
||||||
variables:
|
|
||||||
LANG: C.UTF-8
|
|
||||||
before_script:
|
|
||||||
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
|
||||||
script:
|
|
||||||
- podman build --pull -f .docker/Dockerfile -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
|
|
||||||
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
|
|
||||||
except:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
package-deploy:
|
|
||||||
stage: package
|
stage: package
|
||||||
interruptible: true
|
interruptible: true
|
||||||
image: quay.io/sheogorath/build-ah-engine:latest
|
image: quay.io/sheogorath/build-ah-engine:latest
|
||||||
variables:
|
variables:
|
||||||
LANG: C.UTF-8
|
LANG: C.UTF-8
|
||||||
tags:
|
tags:
|
||||||
- privileged
|
- privileged-ram-4gb
|
||||||
before_script:
|
before_script:
|
||||||
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
- podman build --pull -f .docker/Dockerfile -t "$CI_REGISTRY_IMAGE" .
|
- podman build --pull -f .docker/Dockerfile -t "$CI_REGISTRY_IMAGE" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
|
||||||
- podman push "$CI_REGISTRY_IMAGE"
|
- podman push "$CI_REGISTRY_IMAGE"
|
||||||
only:
|
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
|
||||||
- deploy
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
|
||||||
interruptible: true
|
|
||||||
tags:
|
|
||||||
- privileged
|
|
||||||
image: quay.io/sheogorath/build-ah-engine:latest
|
|
||||||
variables:
|
|
||||||
LANG: C.UTF-8
|
|
||||||
before_script:
|
|
||||||
- dnf install curl
|
|
||||||
script:
|
|
||||||
- podman run -d -p 8080:80 --name testing $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
|
||||||
- sleep 5
|
|
||||||
- podman exec testing nginx -c /etc/nginx/nginx.conf -t
|
|
||||||
- curl http://localhost:8080/status.txt | grep -q 'OK'
|
|
||||||
- podman stop testing
|
|
||||||
- podman rm testing
|
|
||||||
except:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
test-deploy:
|
|
||||||
stage: test
|
stage: test
|
||||||
interruptible: true
|
interruptible: true
|
||||||
tags:
|
tags:
|
||||||
|
@ -104,8 +67,6 @@ test-deploy:
|
||||||
- curl http://localhost:8080/status.txt | grep -q 'OK'
|
- curl http://localhost:8080/status.txt | grep -q 'OK'
|
||||||
- podman stop testing
|
- podman stop testing
|
||||||
- podman rm testing
|
- podman rm testing
|
||||||
only:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -114,5 +75,3 @@ deploy:
|
||||||
trigger:
|
trigger:
|
||||||
project: saibotk.de/infrastructure-private
|
project: saibotk.de/infrastructure-private
|
||||||
strategy: depend
|
strategy: depend
|
||||||
only:
|
|
||||||
- deploy
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue