Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 102993cb2a | |||
| f4a26d117a | |||
| 152555b6aa | |||
| af5da95f20 | |||
| 705980628e | |||
| 815e500432 | |||
| 81ff35388b | |||
| 80ebba33bc | |||
| 9b0b929fd8 | |||
| 26443fff40 |
77
.drone.yml
77
.drone.yml
@@ -1,77 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: Tests
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Tests
|
|
||||||
image: docker/compose:1.29.2
|
|
||||||
volumes:
|
|
||||||
- name: docker-sock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
commands:
|
|
||||||
- docker-compose down -v --remove-orphans -t0
|
|
||||||
- docker-compose build
|
|
||||||
- docker-compose --profile tests build
|
|
||||||
- docker-compose up -d
|
|
||||||
- docker-compose run --rm tests
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: docker-sock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: Deploy
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Tests
|
|
||||||
image: docker/compose:1.29.2
|
|
||||||
volumes:
|
|
||||||
- name: docker-sock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
commands:
|
|
||||||
- docker-compose down -v --remove-orphans -t0
|
|
||||||
- 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 images
|
|
||||||
image: docker/compose:1.29.2
|
|
||||||
volumes:
|
|
||||||
- name: docker-sock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
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 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
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
14
.gitea/workflows/test.yml
Normal file
14
.gitea/workflows/test.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# - name: Check out repository code
|
||||||
|
# uses: actions/checkout@v4
|
||||||
|
- name: Debug
|
||||||
|
run: echo "wat?"
|
||||||
|
- name: Docker test
|
||||||
|
run: docker run hello-world
|
||||||
Reference in New Issue
Block a user