Update dependabot.yml (#62) #454
This file contains hidden or 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: Compile/Deploy Native Image To Fly.io | |
| # Controls when the action will run. | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_AUTH }} | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Your workflows jobs. | |
| jobs: | |
| Build-Compile-Deploy: | |
| environment: manga-spring.com | |
| concurrency: | |
| group: concurrency-group-1 | |
| cancel-in-progress: true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v2 | |
| - name: Setup Java | |
| uses: oracle-actions/setup-java@v1 | |
| with: | |
| website: jdk.java.net | |
| release: GA | |
| - name: Setup Docker Buildx | |
| uses: docker/setup-buildx-action@v1 | |
| - name: Cache Maven Dependencies | |
| uses: actions/cache@v2 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-mvn-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-mvn- | |
| - name: Build Artifact | |
| run: mvn clean package | |
| - uses: superfly/flyctl-actions/setup-flyctl@master | |
| - name: Multi-Stage Docker Build And Deploy | |
| run: flyctl deploy | |
| - name: Check the deployed service URL | |
| uses: jtalk/url-health-check-action@v2 | |
| with: | |
| url: https://www.manga-spring.com/home | |
| follow-redirect: true | |
| max-attempts: 3 | |
| retry-delay: 5s | |
| retry-all: false |