Use twice daily JustRunMyApp redeploy schedule #5
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: Deploy to JustRunMy.App | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Log in to JustRunMy.App registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.JUSTRUNMY_REGISTRY }} | |
| username: ${{ secrets.JUSTRUNMY_REGISTRY_USERNAME }} | |
| password: ${{ secrets.JUSTRUNMY_REGISTRY_PASSWORD }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ secrets.JUSTRUNMY_IMAGE }} |