Skip to content
Snippets Groups Projects
Commit 4c5f4922 authored by Tim Repke's avatar Tim Repke
Browse files

Merge branch 'server-deployment' into 'production'

add bare-metal tag

See merge request !7
parents 405d0802 e2c22928
No related branches found
No related tags found
1 merge request!7add bare-metal tag
Pipeline #986 canceled
# This file is a template, and might need editing before it works on your project.
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:latest
# Change pip's cache directory to be inside the project directory since we can # Change pip's cache directory to be inside the project directory since we can
# only cache local items. # only cache local items.
variables: variables:
...@@ -30,6 +20,7 @@ stages: ...@@ -30,6 +20,7 @@ stages:
build-job: build-job:
stage: build stage: build
image: python:latest
script: script:
- python -V - python -V
- pip install virtualenv - pip install virtualenv
...@@ -43,18 +34,22 @@ build-job: ...@@ -43,18 +34,22 @@ build-job:
test-job1: test-job1:
stage: test stage: test
image: python:latest
script: script:
- source venv/bin/activate - source venv/bin/activate
- flake8 --config .flake8 - flake8 --config .flake8
test-job2: test-job2:
stage: test stage: test
image: python:latest
script: script:
- source venv/bin/activate - source venv/bin/activate
- mypy --config-file=pyproject.toml server - mypy --config-file=pyproject.toml server
deploy-to-production: deploy-to-production:
stage: deploy stage: deploy
tags:
- bare-metal
script: script:
- echo "Becoming 'nacsos' user" - echo "Becoming 'nacsos' user"
- sudo -u nacsos -s - sudo -u nacsos -s
......
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