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: ...@@ -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 }}
......
#!/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
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