mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 22:00:56 -05:00
example-service: only one workflow to avoid breakage
This commit is contained in:
parent
fccbd1ce6b
commit
7243566bce
2 changed files with 21 additions and 19 deletions
|
@ -1,19 +0,0 @@
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/debian:bookworm
|
||||
|
||||
services:
|
||||
pgsql:
|
||||
image: code.forgejo.org/oci/postgres:15
|
||||
env:
|
||||
POSTGRES_DB: test
|
||||
POSTGRES_PASSWORD: postgres
|
||||
steps:
|
||||
- run: |
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq postgresql-client
|
||||
PGPASSWORD=postgres psql -h pgsql -U postgres -c '\dt' test
|
|
@ -2,9 +2,29 @@ on: [push]
|
|||
|
||||
jobs:
|
||||
#
|
||||
# No volume involved
|
||||
#
|
||||
simple:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/debian:bookworm
|
||||
|
||||
services:
|
||||
pgsql:
|
||||
image: code.forgejo.org/oci/postgres:15
|
||||
env:
|
||||
POSTGRES_DB: test
|
||||
POSTGRES_PASSWORD: postgres
|
||||
steps:
|
||||
- run: |
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq postgresql-client
|
||||
PGPASSWORD=postgres psql -h pgsql -U postgres -c '\dt' test
|
||||
#
|
||||
# A --volume option will expose the volume from the docker host to the job
|
||||
#
|
||||
volume-on-step:
|
||||
needs: [simple]
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/debian:bookworm
|
||||
|
@ -19,6 +39,7 @@ jobs:
|
|||
# A --volume option will expose the volume from the docker host to the service
|
||||
#
|
||||
volume-on-service:
|
||||
needs: [volume-on-step]
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/debian:bookworm
|
Loading…
Reference in a new issue