Update services hosts
This commit is contained in:
parent
677dfe25af
commit
36e91ff03e
2 changed files with 21 additions and 27 deletions
|
@ -6,28 +6,6 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
services:
|
|
||||||
database:
|
|
||||||
image: postgres:10-alpine
|
|
||||||
env:
|
|
||||||
POSTGRES_PASSWORD: hostr
|
|
||||||
POSTGRES_USER: hostr
|
|
||||||
POSTGRES_DB: hostr
|
|
||||||
ports:
|
|
||||||
- 5432:5432
|
|
||||||
redis:
|
|
||||||
image: redis:4.0.2-alpine
|
|
||||||
ports:
|
|
||||||
- 6379:6379
|
|
||||||
minio:
|
|
||||||
image: minio/minio
|
|
||||||
env:
|
|
||||||
MINIO_ACCESS_KEY: 7HYV3KPRGQ8Z5YCDNWC6
|
|
||||||
MINIO_SECRET_KEY: 0kWP/ZkgIwQzgL9t4SGv9Uc93rO//OdyqMH329b/
|
|
||||||
ports:
|
|
||||||
- 9000:9000
|
|
||||||
cmd: server /export
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-image:
|
build-image:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
@ -42,6 +20,7 @@ jobs:
|
||||||
registry: cremin.dev
|
registry: cremin.dev
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||||
|
logout: false
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: https://cremin.dev/actions/checkout@v4
|
uses: https://cremin.dev/actions/checkout@v4
|
||||||
- name: Build image
|
- name: Build image
|
||||||
|
@ -51,19 +30,34 @@ jobs:
|
||||||
context: ./
|
context: ./
|
||||||
oci: true
|
oci: true
|
||||||
layers: true
|
layers: true
|
||||||
image: hostr
|
image: cremin.dev/jonathan/hostr
|
||||||
tags: latest ${{ github.sha }}
|
tags: latest ${{ github.sha }}
|
||||||
- name: Push image
|
- name: Push image
|
||||||
uses: https://cremin.dev/actions/push-to-registry@v2
|
uses: https://cremin.dev/actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
registry: cremin.dev/jonathan
|
registry: cremin.dev
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||||
image: hostr
|
image: jonathan/hostr
|
||||||
tags: latest ${{ github.sha }}
|
tags: latest ${{ github.sha }}
|
||||||
test-image:
|
test-image:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
needs: build-image
|
needs: build-image
|
||||||
|
services:
|
||||||
|
database:
|
||||||
|
image: postgres:14-alpine
|
||||||
|
env:
|
||||||
|
POSTGRES_PASSWORD: hostr
|
||||||
|
POSTGRES_USER: hostr
|
||||||
|
POSTGRES_DB: hostr
|
||||||
|
redis:
|
||||||
|
image: redis:4.0.2-alpine
|
||||||
|
minio:
|
||||||
|
image: minio/minio
|
||||||
|
env:
|
||||||
|
MINIO_ACCESS_KEY: 7HYV3KPRGQ8Z5YCDNWC6
|
||||||
|
MINIO_SECRET_KEY: 0kWP/ZkgIwQzgL9t4SGv9Uc93rO//OdyqMH329b/
|
||||||
|
cmd: ["server", "/export"]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: https://cremin.dev/actions/checkout@v4
|
uses: https://cremin.dev/actions/checkout@v4
|
||||||
|
|
|
@ -61,7 +61,7 @@ services:
|
||||||
- "3001:3000"
|
- "3001:3000"
|
||||||
command: yarn run worker
|
command: yarn run worker
|
||||||
database:
|
database:
|
||||||
image: "postgres:10-alpine"
|
image: "postgres:14-alpine"
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
|
@ -69,7 +69,7 @@ services:
|
||||||
POSTGRES_USER: "hostr"
|
POSTGRES_USER: "hostr"
|
||||||
POSTGRES_DB: "hostr"
|
POSTGRES_DB: "hostr"
|
||||||
redis:
|
redis:
|
||||||
image: "redis:4.0.2-alpine"
|
image: "redis:8-alpine"
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
minio:
|
minio:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue