Skip to content

Build and publish image #11

Build and publish image

Build and publish image #11

Workflow file for this run

---
name: Build and publish image
on:
workflow_dispatch:
# push:
# branches:
# - 'master'
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: cakephp
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push builder image
run: |
docker build -t ghcr.io/cakephp/docs-builder .
docker push ghcr.io/cakephp/docs-builder
- name: Build and push runtime image
run: |
docker build -t ghcr.io/cakephp/docs-builder:runtime -f runtime.Dockerfile .
docker push ghcr.io/cakephp/docs-builder:runtime