Skip to content

Paula-Reisen/CD-assignement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CD-assignement

Assignment Winc Academy Continuous Development Pipeline

Main.Py

Simple code for pushing with use of FLASK module. With flask we publish hello world to app using fuction app.route. The main route goes to Hello, World! and /cow goed to MOoooOo!

Test_run.py

Tests main.py

requirements.txt

Github actions run-pipeline gets stored in this documents. You see this in the run-pipeline.yml file with the sentence: pip install -r requirements.txt

run_actions.yml

Stores the ipadres from droplet and also gives the password for digital ocean droplets. Only runs after the completion of run-pipeline.yml

run_pipeline.yml

Runs the test and also installs python and pytest in the host. We have chosen ubuntu to run the commands in.

Secrets

There are two installed secrets, namely:

  • CD_SECRET: Contains IPadres for website cd-assignment
  • PASSWORD_ROOT: Contains password to publish the changes

problems SSH Keys

Two problems with ssh keys where

problem 2

I had an issue with getting my gitactions working.

  • workflow names where incorrect
  • before I found the link above I didn't get the connection working with droplet to update the site. Fixing the names so the test did run Creating the correct connection with github and adding the right secrets

problem 3

I had a problem with the format of the yml file: * The steps was not in the right place * The syntax wasn't correct Try multiple times just to find the right format so it didn't fail on the syntax.

About

Assignment Winc Academy Continuous Development Pipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages