-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2be1de
commit c80d08a
Showing
2 changed files
with
39 additions
and
18 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 |
---|---|---|
|
@@ -6,18 +6,24 @@ on: | |
description: "Indicates if the job should be run" | ||
required: true | ||
type: boolean | ||
job_needs: | ||
description: "JSON list of jobs needed to run this workflow" | ||
required: true | ||
type: string | ||
# job_needs: | ||
# description: "JSON list of jobs needed to run this workflow" | ||
# required: true | ||
# type: string | ||
secrets: | ||
SONATYPE_USER: | ||
nussknacker_version: | ||
required: true | ||
git_source_branch: | ||
required: true | ||
sonatype_user: | ||
required: true | ||
sonatype_password: | ||
required: true | ||
SONATYPE_PASSWORD: | ||
github_token: | ||
required: true | ||
DOCKERHUB_USER: | ||
dockerhub_user: | ||
required: true | ||
DOCKERHUB_TOKEN: | ||
dockerhub_token: | ||
required: true | ||
|
||
jobs: | ||
|
@@ -28,16 +34,16 @@ jobs: | |
env: | ||
nexusUrl: https://oss.sonatype.org/content/repositories/snapshots | ||
addDevArtifacts: true | ||
NUSSKNACKER_VERSION: ${{ needs.setup.outputs.nk_snapshot_version }} | ||
GIT_SOURCE_BRANCH: ${{ needs.setup.outputs.git_source_branch }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USER }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
NUSSKNACKER_VERSION: ${{ secrets.nussknacker_version }} | ||
GIT_SOURCE_BRANCH: ${{ secrets.git_source_branch }} | ||
SONATYPE_USERNAME: ${{ secrets.sonatype_user }} | ||
SONATYPE_PASSWORD: ${{ secrets.sonatype_password }} | ||
steps: | ||
- name: Cancel previous runs | ||
if: github.event_name != 'push' | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
access_token: ${{ secrets.github_token }} | ||
- uses: actions/checkout@v3 | ||
- uses: coursier/setup-action@v1 | ||
with: | ||
|
@@ -66,8 +72,8 @@ jobs: | |
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
username: ${{ secrets.dockerhub_user }} | ||
password: ${{ secrets.dockerhub_token }} | ||
- name: Setup buildx builder | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
|