Added option cpusetcpus #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Publish | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'feature/cicd-workflows' | |
env: | |
JAVA_VERSION: 19 | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Build and Publish Docker Image | |
env: | |
ORG_REGISTRY_USER: ${{ secrets.ORG_REGISTRY_USER }} | |
ORG_REGISTRY_PASSWORD: ${{ secrets.ORG_REGISTRY_PASSWORD }} | |
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }} | |
run: ./gradlew jib | |
- name: Re-Deploy | |
run: "curl -H 'Authorization: Bearer ${{ secrets.ORG_WATCHTOWER_TOKEN }}' https://togetherjava.org:5003/v1/update" |