forked from nucypher/nucypher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor lynx docker workflow as 'reusable'
- Loading branch information
Showing
3 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: '🥼🐳 Publish Lynx Experimental' | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
branches: | ||
- v*.*.* | ||
- epic-* | ||
|
||
jobs: | ||
lynx-docker: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.labels.*.name == 'lynx' | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Print a message if 'lynx' label is present | ||
run: echo "The 'lynx' label is present. Proceeding with Docker build and push operations." | ||
|
||
- name: Call Docker Workflow if Label is Present | ||
if: steps.label-check.outputs.has-lynx-label == 'true' | ||
uses: ./.github/workflows/lynx-docker.yml@main | ||
with: | ||
docker_username: ${{ secrets.DOCKER_USERNAME }} | ||
docker_password: ${{ secrets.DOCKER_PASSWORD }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: '🔀 Merge Pull Request' | ||
|
||
on: | ||
push: | ||
tags: [ 'v*.*.*' ] | ||
branches: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
lynx-docker: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.labels.*.name == 'lynx' | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Print a message if 'lynx' label is present | ||
run: echo "The 'lynx' label is present. Proceeding with Docker build and push operations." | ||
|
||
- name: Call Docker Workflow if Label is Present | ||
if: steps.label-check.outputs.has-lynx-label == 'true' | ||
uses: ./.github/workflows/lynx-docker.yml@main | ||
with: | ||
docker_username: ${{ secrets.DOCKER_USERNAME }} | ||
docker_password: ${{ secrets.DOCKER_PASSWORD }} |