This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | code.forgejo.org/oci/debian → data.forgejo.org/oci/debian | container | replacement | `trixie` → `trixie` | | code.forgejo.org/oci/debian → data.forgejo.org/oci/debian | service | replacement | `trixie` → `trixie` | This is a special PR that replaces `code.forgejo.org/oci/debian` with the community suggested minimal stable replacement version. --- ### Configuration 📅 **Schedule**: Branch creation - "" (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi44NS4zIiwidXBkYXRlZEluVmVyIjoiNDIuODUuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1493 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org> Co-authored-by: Renovate Bot <bot@kriese.eu> Co-committed-by: Renovate Bot <bot@kriese.eu>
75 lines
2.1 KiB
YAML
75 lines
2.1 KiB
YAML
on: [push]
|
|
|
|
jobs:
|
|
#
|
|
# No volume involved & the container is implicit
|
|
#
|
|
simple-no-container:
|
|
runs-on: docker
|
|
services:
|
|
pgsql:
|
|
image: data.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
|
|
#
|
|
# No volume involved & the container is explicit
|
|
#
|
|
simple:
|
|
runs-on: docker
|
|
container:
|
|
image: data.forgejo.org/oci/debian:trixie
|
|
|
|
services:
|
|
pgsql:
|
|
image: data.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: data.forgejo.org/oci/debian:trixie
|
|
options: "--volume /srv/example-service-volume-valid:/srv/example-service-volume-valid --volume /srv/example-service-volume-invalid:/srv/example-service-volume-invalid"
|
|
|
|
steps:
|
|
- run: |
|
|
test -f /srv/example-service-volume-valid
|
|
! test -f /srv/example-service-volume-invalid
|
|
|
|
#
|
|
# 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: data.forgejo.org/oci/debian:trixie
|
|
options: "--volume /srv/example-service-volume-valid:/srv/example-service-volume-valid"
|
|
|
|
services:
|
|
myservice:
|
|
image: data.forgejo.org/oci/debian:trixie
|
|
options: "--volume /srv/example-service-volume-valid:/srv/example-service-volume-valid"
|
|
cmd: ["bash", "-c", "echo -n SUCCESS > /srv/example-service-volume-valid ; sleep infinity"]
|
|
|
|
steps:
|
|
- run: |
|
|
set -x
|
|
f=/srv/example-service-volume-valid
|
|
test -f $f
|
|
test $(cat $f) = SUCCESS
|