chore: test ci #523
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | |
# | |
# Generated on 2023-12-12T04:21:39Z by kres latest. | |
name: default | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
"on": | |
push: | |
branches: | |
- main | |
- release-* | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- main | |
- release-* | |
jobs: | |
default: | |
permissions: | |
actions: read | |
contents: write | |
issues: read | |
packages: write | |
pull-requests: read | |
runs-on: | |
- self-hosted | |
- generic | |
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/')) | |
outputs: | |
labels: ${{ github.event.name == 'pull_request' && steps.retrieve-pr-labels.outputs.result || '[]' }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Retrieve PR labels | |
id: retrieve-pr-labels | |
uses: actions/github-script@v6 | |
if: github.event_name == 'pull_request' && always() | |
with: | |
retries: "3" | |
script: | | |
const resp = await github.rest.issues.get({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
}) | |
return resp.data.labels.map(label => label.name) | |
- name: echo | |
run: | | |
echo "${{ toJSON(steps.retrieve-pr-labels.outputs) }}" | |
dummy: | |
runs-on: | |
- self-hosted | |
if: contains(fromJSON(needs.default.outputs.labels), 'integration/e2e') || contains(fromJSON(needs.default.outputs.labels), 'integration/dummy') | |
needs: | |
- default | |
services: | |
buildkitd: | |
image: moby/buildkit:v0.12.4 | |
options: --privileged | |
ports: | |
- 1234:1234 | |
volumes: | |
- /var/lib/buildkit/${{ github.repository }}:/var/lib/buildkit | |
- /usr/etc/buildkit/buildkitd.toml:/etc/buildkit/buildkitd.toml | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Unshallow | |
run: | | |
git fetch --prune --unshallow | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
driver: remote | |
endpoint: tcp://localhost:1234 | |
- name: dummy | |
run: | | |
make dummy | |
dummy-a: | |
runs-on: | |
- self-hosted | |
if: contains(fromJSON(needs.default.outputs.labels), 'integration/e2e') || contains(fromJSON(needs.default.outputs.labels), 'integration/dummy-a') | |
needs: | |
- default | |
services: | |
buildkitd: | |
image: moby/buildkit:v0.12.4 | |
options: --privileged | |
ports: | |
- 1234:1234 | |
volumes: | |
- /var/lib/buildkit/${{ github.repository }}:/var/lib/buildkit | |
- /usr/etc/buildkit/buildkitd.toml:/etc/buildkit/buildkitd.toml | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Unshallow | |
run: | | |
git fetch --prune --unshallow | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
driver: remote | |
endpoint: tcp://localhost:1234 | |
- name: dummy | |
run: | | |
make dummy |