|
| 1 | +name: library/caddy:2.10 |
| 2 | + |
| 3 | +on: |
| 4 | + repository_dispatch: |
| 5 | + types: [core_merge, elfloader_merge, libelf_merge, lwip_merge] |
| 6 | + |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | + schedule: |
| 10 | + - cron: '0 0 * * *' |
| 11 | + |
| 12 | + push: |
| 13 | + branches: [main] |
| 14 | + paths: |
| 15 | + - 'library/caddy/2.10/**' |
| 16 | + - '.github/workflows/library-caddy2.10.yaml' |
| 17 | + - '!library/caddy/2.10/README.md' |
| 18 | + |
| 19 | + pull_request: |
| 20 | + types: [opened, synchronize, reopened] |
| 21 | + branches: [main] |
| 22 | + paths: |
| 23 | + - 'library/caddy/2.10/**' |
| 24 | + - '.github/workflows/library-caddy2.10.yaml' |
| 25 | + - '!library/caddy/2.10/README.md' |
| 26 | + |
| 27 | +# Automatically cancel in-progress actions on the same branch |
| 28 | +concurrency: |
| 29 | + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} |
| 30 | + cancel-in-progress: true |
| 31 | + |
| 32 | +jobs: |
| 33 | + build: |
| 34 | + strategy: |
| 35 | + fail-fast: false |
| 36 | + matrix: |
| 37 | + include: |
| 38 | + - plat: qemu |
| 39 | + arch: x86_64 |
| 40 | + - plat: fc |
| 41 | + arch: x86_64 |
| 42 | + |
| 43 | + runs-on: ubuntu-latest |
| 44 | + |
| 45 | + steps: |
| 46 | + - uses: actions/checkout@v4 |
| 47 | + |
| 48 | + - name: Build caddy2.10 |
| 49 | + uses: unikraft/kraftkit@staging |
| 50 | + with: |
| 51 | + loglevel: debug |
| 52 | + workdir: library/caddy/2.10 |
| 53 | + runtimedir: /github/workspace/.kraftkit |
| 54 | + plat: ${{ matrix.plat }} |
| 55 | + arch: ${{ matrix.arch }} |
| 56 | + push: false |
| 57 | + output: oci://index.unikraft.io/unikraft.org/caddy:2.10 |
| 58 | + |
| 59 | + - name: Archive OCI digests |
| 60 | + uses: actions/upload-artifact@v4 |
| 61 | + with: |
| 62 | + name: oci-digests-${{ matrix.arch }}-${{ matrix.plat }} |
| 63 | + path: ${{ github.workspace }}/.kraftkit/oci/digests |
| 64 | + if-no-files-found: error |
| 65 | + |
| 66 | + push: |
| 67 | + if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }} |
| 68 | + needs: [ build ] |
| 69 | + runs-on: ubuntu-latest |
| 70 | + |
| 71 | + steps: |
| 72 | + - uses: actions/checkout@v4 |
| 73 | + |
| 74 | + - name: Login to OCI registry |
| 75 | + uses: docker/login-action@v3 |
| 76 | + with: |
| 77 | + registry: index.unikraft.io |
| 78 | + username: ${{ secrets.REG_USERNAME }} |
| 79 | + password: ${{ secrets.REG_TOKEN }} |
| 80 | + |
| 81 | + - name: Retrieve, merge and push OCI digests |
| 82 | + uses: ./.github/actions/merge-oci-digests |
| 83 | + with: |
| 84 | + name: index.unikraft.io/unikraft.org/caddy:2.10 |
| 85 | + push: true |
0 commit comments