Skip to content

Commit 634a4c9

Browse files
committed
docker build
1 parent 8bb7a82 commit 634a4c9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docker.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
image:
5+
default: ghcr.io/viamrobotics/cpp-base
6+
dockerfile:
7+
default: Dockerfile.debian.bullseye
8+
tag:
9+
default: bullseye-amd64
10+
11+
jobs:
12+
build-container:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: docker/metadata-action@v5
20+
id: meta
21+
with:
22+
images: ${{ inputs.image }}
23+
- uses: docker/build-push-action@v5
24+
with:
25+
context: .
26+
push: true
27+
tags: ${{ inputs.image }}:${{ inputs.tag }}
28+
labels: ${{ steps.meta.output.labels }}

0 commit comments

Comments
 (0)