Merge pull request #1778 from cloudfoundry/dependabot/go_modules/asse… #56
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: Create and publish a Docker image with the "catnip" app | |
| on: | |
| push: | |
| branches: ['develop'] | |
| paths: | |
| - 'assets/catnip/**' | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: cloudfoundry/catnip-app | |
| jobs: | |
| build-and-push-image: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| id: push | |
| uses: docker/[email protected] | |
| with: | |
| context: ./assets/catnip/ | |
| file: ./assets/catnip/Dockerfile | |
| push: true | |
| tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest |