Merge pull request #28 from moda20/Feature/qdd-new-Dashboard-event-apis #57
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: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-and-push: | |
| permissions: write-all | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the code | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| # Log in to GitHub Container Registry (GHCR) | |
| - name: Log in to GHCR | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: ./DOCKERFILE | |
| push: true | |
| tags: | | |
| ghcr.io/${{ github.repository_owner }}/scheduler_backend:latest | |
| ghcr.io/${{ github.repository_owner }}/scheduler_backend:${{ github.sha }} | |
| platforms: linux/amd64,linux/arm64 |