5 Commits
test4 ... 0.3.2

Author SHA1 Message Date
ce4be7e5a1 Fixed error in docker tagging
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-15 20:17:25 +01:00
dbf4512e9f Updated pipelines to always push the latest tag to docker hub
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-15 20:14:33 +01:00
bfcf27cd60 Release candidate
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-15 20:11:58 +01:00
edb0ef0ced Updated tag pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-15 20:03:29 +01:00
b3263145ca Updated tag pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-15 19:55:01 +01:00

View File

@@ -5,15 +5,15 @@ name: Tests
steps:
- name: Tests
image: docker/compose:1.29.2
volumes:
- name: docker-sock
path: /var/run/docker.sock
commands:
- docker-compose build
- docker-compose --profile tests build
- docker-compose run --rm db-migrations
- docker-compose up -d
- docker-compose run --rm tests
volumes:
- name: docker-sock
path: /var/run/docker.sock
volumes:
- name: docker-sock
@@ -32,23 +32,39 @@ name: Deploy
steps:
- name: Tests
image: docker/compose:1.29.2
volumes:
- name: docker-sock
path: /var/run/docker.sock
commands:
- docker-compose build
- docker-compose --profile tests build
- docker-compose run --rm db-migrations
- docker-compose up -d
- docker-compose run --rm tests
- name: Build db migration
image: docker/compose:1.29.2
volumes:
- name: docker-sock
path: /var/run/docker.sock
- name: Build db migration
commands:
- docker build -t lilleman/auth-api-db-migrate:$DRONE_TAG -f ./Dockerfile.migrations .
- docker build -t lilleman/auth-api:$DRONE_TAG -f ./Dockerfile .
- name: Push to Docker Hub
image: docker/compose:1.29.2
environment:
DOCKERHUB_TOKEN:
from_secret: dockerhub
volumes:
- name: docker-sock
path: /var/run/docker.sock
commands:
- docker build -t auth-api-db-migrate:$DRONE_TAG -f ./Dockerfile.migrations .
- docker build -t auth-api:$DRONE_TAG -f ./Dockerfile .
- docker login -u lilleman -p $DOCKERHUB_TOKEN
- docker push lilleman/auth-api-db-migrate:$DRONE_TAG
- docker push lilleman/auth-api:$DRONE_TAG
- docker tag lilleman/auth-api-db-migrate:$DRONE_TAG lilleman/auth-api-db-migrate:latest
- docker tag lilleman/auth-api:$DRONE_TAG lilleman/auth-api:latest
- docker push lilleman/auth-api-db-migrate:latest
- docker push lilleman/auth-api:latest
volumes:
- name: docker-sock