Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
AutoReferee
Commits
350484cf
Unverified
Commit
350484cf
authored
Feb 11, 2021
by
NicolaiO
🐼
Browse files
Update pipeline
parent
195ec62c
Pipeline
#8579
passed with stage
in 1 minute and 58 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.github/workflows/release.yml
View file @
350484cf
...
@@ -18,8 +18,17 @@ jobs:
...
@@ -18,8 +18,17 @@ jobs:
uses
:
actions/setup-java@v1
uses
:
actions/setup-java@v1
with
:
with
:
java-version
:
11
java-version
:
11
-
name
:
Grant execute permission for gradlew
-
name
:
Publish to Docker Hub
run
:
chmod +x gradlew
env
:
DOCKER_HUB_USERNAME
:
${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD
:
${{ secrets.DOCKER_HUB_PASSWORD }}
run
:
./gradlew jib
-
name
:
Install curl
run
:
sudo apt-get install -y curl
-
name
:
Trigger Docker Hub build
env
:
BUILD_TRIGGERS
:
${{ secrets.BUILD_TRIGGERS }}
run
:
./.github/workflows/trigger_docker.sh
-
name
:
Publish Release
-
name
:
Publish Release
env
:
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
...
...
.github/workflows/trigger_docker.sh
View file @
350484cf
#!/bin/sh
#!/bin/sh
for
url
in
$(
echo
"
$BUILD_TRIGGERS
"
|
sed
"s/,/ /g"
)
;
do
for
url
in
$(
echo
"
$BUILD_TRIGGERS
"
|
sed
"s/,/ /g"
)
;
do
curl
-X
POST
-H
"Content-Type: application/json"
--data
"{
\"
build
\"
: true,
\"
source_name
\"
:
\"
$GITHUB_REF
\"
}"
"
$url
"
curl
-X
POST
-H
"Content-Type: application/json"
--data
"{
\"
build
\"
: true,
\"
source_name
\"
:
\"
$
{
GITHUB_REF
#refs/*/
}
\"
}"
"
$url
"
done
done
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment