Bump net.dv8tion:JDA from 4.4.0_352 to 5.2.1 #138
Workflow file for this run
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: clancy stage | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew clean build -x test | |
- name: Docker Login on DockerHub | |
run: docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASS }} | |
- name: Docker Publish on DockerHub | |
run: ./gradlew dockerPushDockerHub | |
- name: Docker pull published image | |
run: docker pull ${{ secrets.DOCKER_HUB_USER }}/clancy:2.0.1 | |
- name: Docker Login on Heroku | |
run: docker login --username=_ --password=${{ secrets.PREPROD_HEROKU_KEY }} registry.heroku.com | |
- name: Docker tag on Heroku | |
run: docker tag ${{ secrets.DOCKER_HUB_USER }}/clancy:2.0.1 registry.heroku.com/clancy-stage/worker | |
- name: Docker push on Heroku | |
run: docker push registry.heroku.com/clancy-stage/worker | |
# An authentication template: | |
# machine api.heroku.com | |
# login {user} | |
# password {api key} | |
- name: Heroku auth file | |
run: echo "${{ secrets.PREPROD_HEROKU_AUTH }}" > ~/.netrc | |
- name: Heroku container login | |
run: heroku container:login | |
- name: Heroku container release | |
run: heroku container:release worker -a clancy-stage |