-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (32 loc) · 911 Bytes
/
buildimage.yml
File metadata and controls
39 lines (32 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
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