7 Commits
test2 ... 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
451f660efb Updated tag pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-15 19:53:21 +01:00
ec1eaddd11 Updated tag pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-15 19:49:55 +01:00
2 changed files with 23 additions and 7 deletions

View File

@@ -5,15 +5,15 @@ name: Tests
steps: steps:
- name: Tests - name: Tests
image: docker/compose:1.29.2 image: docker/compose:1.29.2
volumes:
- name: docker-sock
path: /var/run/docker.sock
commands: commands:
- docker-compose build - docker-compose build
- docker-compose --profile tests build - docker-compose --profile tests build
- docker-compose run --rm db-migrations - docker-compose run --rm db-migrations
- docker-compose up -d - docker-compose up -d
- docker-compose run --rm tests - docker-compose run --rm tests
volumes:
- name: docker-sock
path: /var/run/docker.sock
volumes: volumes:
- name: docker-sock - name: docker-sock
@@ -32,23 +32,39 @@ name: Deploy
steps: steps:
- name: Tests - name: Tests
image: docker/compose:1.29.2 image: docker/compose:1.29.2
volumes:
- name: docker-sock
path: /var/run/docker.sock
commands: commands:
- docker-compose build - docker-compose build
- docker-compose --profile tests build - docker-compose --profile tests build
- docker-compose run --rm db-migrations - docker-compose run --rm db-migrations
- docker-compose up -d - docker-compose up -d
- docker-compose run --rm tests - docker-compose run --rm tests
- name: Build db migration
image: docker/compose:1.29.2
volumes: volumes:
- name: docker-sock - name: docker-sock
path: /var/run/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 image: docker/compose:1.29.2
environment: environment:
DOCKERHUB_TOKEN: DOCKERHUB_TOKEN:
from_secret: dockerhub from_secret: dockerhub
volumes:
- name: docker-sock
path: /var/run/docker.sock
commands: commands:
- docker build -t auth-api-db-migrate:$DRONE_TAG ./Dockerfile.migrations - docker login -u lilleman -p $DOCKERHUB_TOKEN
- docker build -t auth-api:$DRONE_TAG ./Dockerfile - 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: volumes:
- name: docker-sock - name: docker-sock

View File

@@ -1,3 +1,3 @@
FROM amacneil/dbmate:v1.14.0 FROM amacneil/dbmate:1.14.0
COPY db /db COPY db /db