Skip to content
Snippets Groups Projects
Commit 29355d05 authored by Pernille Welle-Watne's avatar Pernille Welle-Watne
Browse files

try another type

parent f9e9149e
No related branches found
No related tags found
5 merge requests!9Error 1,!7Boundary tests,!6Task 2 coverage test,!5Task 2 coverage test,!3Google calendar
...@@ -3,7 +3,8 @@ variables: ...@@ -3,7 +3,8 @@ variables:
HEROKU_REGISTRY_IMAGE: registry.heroku.com/${HEROKU_APP_NAME}/web HEROKU_REGISTRY_IMAGE: registry.heroku.com/${HEROKU_APP_NAME}/web
stages: stages:
- test - test
- build_and_deploy - build_image
- release
test: test:
image: python:3 image: python:3
...@@ -15,20 +16,29 @@ test: ...@@ -15,20 +16,29 @@ test:
- pip install -r requirements.txt - pip install -r requirements.txt
- python manage.py test - python manage.py test
build_and_deploy: build_image:
image: docker:stable only:
services: - master
- docker:dind image: registry.gitlab.com/majorhayden/container-buildah
stage: build_and_deploy stage: build
variables:
STORAGE_DRIVER: "vfs"
BUILDAH_FORMAT: "docker"
before_script:
- dnf install -y nodejs
- curl https://cli-assets.heroku.com/install.sh | sh
- sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
script: script:
- apk add --no-cache curl - buildah bud --iidfile iidfile -t rust-python-demo:$CI_COMMIT_SHORT_SHA .
- docker login -u _ -p $HEROKU_AUTH_TOKEN registry.heroku.com - buildah push --creds=_:$(heroku auth:token) $(cat iidfile) registry.heroku.com/tdt4242-base/web
- docker pull $HEROKU_REGISTRY_IMAGE || true
- docker build release:
--cache-from $HEROKU_REGISTRY_IMAGE only:
--tag $HEROKU_REGISTRY_IMAGE - master
--file ./Dockerfile image: node:10.17-alpine
"." stage: release
- docker push $HEROKU_REGISTRY_IMAGE before_script:
- chmod +x ./release.sh - apk add curl bash
- ./release.sh - curl https://cli-assets.heroku.com/install.sh | sh
\ No newline at end of file script:
- heroku container:release -a tdt4242-base web
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment