Skip to content

Commit

Permalink
Merge pull request #35 from NORDUnet/feature/docker
Browse files Browse the repository at this point in the history
[TechDebt] Adding automatic docker publishing.
  • Loading branch information
JohannesGarm authored Nov 26, 2021
2 parents 9eda2b8 + 5162811 commit a2df2a9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
27 changes: 26 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: pipeline
name: default

steps:
- name: build
- name: Test
image: python:3.9
environment:
POSTGRES_HOST: database
Expand All @@ -26,3 +26,28 @@ trigger:
event:
- push
- pull_request

---
kind: pipeline
name: docker

steps:
- name: docker
image: plugins/docker
pull: if-not-exists
settings:
repo: jghnordunet/opennsa
squash: true
auto_tag: true
dockerfile: docker/Dockerfile
username:
from_secret: DOCKER_USER
password:
from_secret: DOCKER_PASS

trigger:
branch:
- master
event:
- tag
- push
2 changes: 1 addition & 1 deletion docker-compose.override.yml_placeholder
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.7"

services:
opennsa:
image: opennsa:latest
image: jghnordunet/opennsa:latest
command: Any valid command
## Mount entire project to volume avoids constant rebuilds.
## You may need to load the container as:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- opennsa-pgdata:/var/lib/postgresql/data
env_file: .env
opennsa:
image: opennsa:latest
image: jghnordunet/opennsa:latest
build:
context: .
dockerfile: docker/Dockerfile
Expand Down

0 comments on commit a2df2a9

Please sign in to comment.