Merge pull request #224 from TorMap/dev #4
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: backend_docker | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
backend_docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- uses: gradle/gradle-build-action@v2 | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Build and push docker image | |
run: cd backend && ./gradlew jib |