Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdt4242-base
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kristoffer Håkon Håkonsen
tdt4242-base
Commits
29355d05
Commit
29355d05
authored
4 years ago
by
Pernille Welle-Watne
Browse files
Options
Downloads
Patches
Plain Diff
try another type
parent
f9e9149e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#110944
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+27
-17
27 additions, 17 deletions
.gitlab-ci.yml
with
27 additions
and
17 deletions
.gitlab-ci.yml
+
27
−
17
View file @
29355d05
...
...
@@ -3,7 +3,8 @@ variables:
HEROKU_REGISTRY_IMAGE
:
registry.heroku.com/${HEROKU_APP_NAME}/web
stages
:
-
test
-
build_and_deploy
-
build_image
-
release
test
:
image
:
python:3
...
...
@@ -15,20 +16,29 @@ test:
-
pip install -r requirements.txt
-
python manage.py test
build_and_deploy
:
image
:
docker:stable
services
:
-
docker:dind
stage
:
build_and_deploy
build_image
:
only
:
-
master
image
:
registry.gitlab.com/majorhayden/container-buildah
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
:
-
apk add --no-cache curl
-
docker login -u _ -p $HEROKU_AUTH_TOKEN registry.heroku.com
-
docker pull $HEROKU_REGISTRY_IMAGE ||
true
-
docker build
--cache-from $HEROKU_REGISTRY_IMAGE
--tag $HEROKU_REGISTRY_IMAGE
--file ./Dockerfile
"."
-
docker push $HEROKU_REGISTRY_IMAGE
-
chmod +x ./release.sh
-
./release.sh
\ No newline at end of file
-
buildah bud --iidfile iidfile -t rust-python-demo:$CI_COMMIT_SHORT_SHA .
-
buildah push --creds=_:$(heroku auth:token) $(cat iidfile) registry.heroku.com/tdt4242-base/web
release
:
only
:
-
master
image
:
node:10.17-alpine
stage
:
release
before_script
:
-
apk add curl bash
-
curl https://cli-assets.heroku.com/install.sh | sh
script
:
-
heroku container:release -a tdt4242-base web
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment