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
195ec62c
Unverified
Commit
195ec62c
authored
Feb 11, 2021
by
NicolaiO
🐼
Browse files
Add docker hub trigger to pipeline
parent
db21e598
Pipeline
#8577
passed with stage
in 2 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/build.yml
View file @
195ec62c
...
...
@@ -17,10 +17,14 @@ jobs:
uses
:
actions/setup-java@v1
with
:
java-version
:
11
-
name
:
Grant execute permission for gradlew
run
:
chmod +x gradlew
-
name
:
Publish to Docker Hub
env
:
DOCKER_HUB_USERNAME
:
${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD
:
${{ secrets.DOCKER_HUB_PASSWORD }}
run
:
./gradlew jib
\ No newline at end of file
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
\ No newline at end of file
.github/workflows/trigger_docker.sh
0 → 100755
View file @
195ec62c
#!/bin/sh
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
"
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