Unverified Commit 195ec62c authored by NicolaiO's avatar NicolaiO 🐼
Browse files

Add docker hub trigger to pipeline

parent db21e598
Pipeline #8577 passed with stage
in 2 minutes and 14 seconds
......@@ -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
#!/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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment