Skip to content

Commit 575b4f8

Browse files
build images for guardrails docs
1 parent 82d89f1 commit 575b4f8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Documentation Docker Image
2+
3+
on:
4+
push:
5+
branches: ["guardrails"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Docker Buildx
14+
uses: docker/setup-buildx-action@v2
15+
16+
- name: Login to GitHub Container Registry
17+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
18+
19+
- name: Build Docs
20+
uses: docker/build-push-action@v5
21+
with:
22+
context: .
23+
file: ./Dockerfile
24+
platforms: linux/amd64
25+
push: true
26+
tags: ghcr.io/${{ github.repository }}/docs:guardrails

0 commit comments

Comments
 (0)