Upgrade Jakarta EE 10 to EE 11 #31
Workflow file for this run
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: Build and Push Docker image to GHCR | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| steps: | |
| # Step 1: Checkout the repository | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| # Step 2: Log in to GitHub Container Registry (GHCR) | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| # Step 3: Build the Docker image | |
| - name: Build Docker image | |
| run: | | |
| IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/dencode-web:latest | |
| docker build -t $IMAGE_NAME . | |
| # Step 4: Push the Docker image to GitHub Container Registry | |
| - name: Push Docker image to GHCR | |
| run: | | |
| IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/dencode-web:latest | |
| docker push $IMAGE_NAME |