Unverified Commit 350484cf authored by NicolaiO's avatar NicolaiO 🐼
Browse files

Update pipeline

parent 195ec62c
Pipeline #8579 passed with stage
in 1 minute and 58 seconds
......@@ -18,8 +18,17 @@ 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
- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
......
#!/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"
curl -X POST -H "Content-Type: application/json" --data "{ \"build\": true, \"source_name\": \"${GITHUB_REF#refs/*/}\" }" "$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