Skip to content

Merge pull request #1559 from cloudfoundry/dependabot/go_modules/asse… #34

Merge pull request #1559 from cloudfoundry/dependabot/go_modules/asse…

Merge pull request #1559 from cloudfoundry/dependabot/go_modules/asse… #34

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@v4
- name: Log in to the Container registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6.16.0
with:
context: ./assets/catnip/
file: ./assets/catnip/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest