2021-02-01 05:08:16 +00:00
|
|
|
name: e2e
|
|
|
|
|
2022-11-26 13:09:19 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-02-01 05:08:16 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-11-26 13:05:57 +00:00
|
|
|
- 'main'
|
|
|
|
- 'release/*'
|
2021-02-01 05:08:16 +00:00
|
|
|
pull_request:
|
|
|
|
|
2022-09-24 06:56:40 +00:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2021-02-01 05:08:16 +00:00
|
|
|
jobs:
|
2021-06-30 07:20:39 +00:00
|
|
|
run-e2e-test:
|
2021-02-01 05:08:16 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-12-20 15:39:09 +00:00
|
|
|
-
|
|
|
|
name: Checkout
|
2022-11-26 13:05:57 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-02-01 05:08:16 +00:00
|
|
|
with:
|
2021-12-20 15:39:09 +00:00
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: Build image
|
2022-11-26 13:05:57 +00:00
|
|
|
uses: docker/bake-action@v2
|
2021-02-01 05:08:16 +00:00
|
|
|
with:
|
2021-12-20 15:39:09 +00:00
|
|
|
targets: image-local
|
|
|
|
-
|
|
|
|
name: Start distribution server
|
2021-02-01 05:08:16 +00:00
|
|
|
run: |
|
2021-12-20 15:39:09 +00:00
|
|
|
docker run --rm -p 5000:5000 -p 5001:5001 -idt "registry:local"
|
|
|
|
-
|
|
|
|
name: Tests
|
2021-02-01 05:08:16 +00:00
|
|
|
run: |
|
2023-10-23 13:52:57 +00:00
|
|
|
bash ./tests/push.sh 127.0.0.0
|
|
|
|
|
|
|
|
run-e2e-test-s3-storage:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: Start E2E environment
|
|
|
|
run: |
|
|
|
|
make start-e2e-s3-env
|
|
|
|
|
|
|
|
- name: Tests
|
|
|
|
run: |
|
|
|
|
bash ./tests/push.sh 127.0.0.0
|
|
|
|
make stop-e2e-s3-env
|