Updated tag pipeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lilleman auf Larv 2022-02-15 20:03:29 +01:00
parent b3263145ca
commit edb0ef0ced

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,26 +32,31 @@ 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
image: docker/compose:1.29.2
environment: environment:
DOCKERHUB_TOKEN: DOCKERHUB_TOKEN:
from_secret: dockerhub from_secret: dockerhub
commands: commands:
- docker build -t auth-api-db-migrate:$DRONE_TAG -f ./Dockerfile.migrations . - docker build -t lilleman/auth-api-db-migrate:$DRONE_TAG -f ./Dockerfile.migrations .
- docker build -t auth-api:$DRONE_TAG -f ./Dockerfile . - docker build -t lilleman/auth-api:$DRONE_TAG -f ./Dockerfile .
volumes: - name: Push to Docker Hub
- name: docker-sock image: docker/compose:1.29.2
path: /var/run/docker.sock commands:
- docker push lilleman/auth-api-db-migrate:$DRONE_TAG
- docker push lilleman/auth-api:$DRONE_TAG
volumes: volumes:
- name: docker-sock - name: docker-sock