Skip to content

Commit f9fbfb4

Browse files
committed
tests: workflow to build and publish ny-tlc-report image
1 parent b549b18 commit f9fbfb4

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and publish ny-tlc-report image
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
id-token: write
8+
9+
jobs:
10+
docker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
-
14+
name: Checkout
15+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16+
-
17+
name: Login to Stackable Harbor
18+
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
19+
with:
20+
registry: oci.stackable.tech
21+
username: robot$stackable+github-action-build
22+
password: ${{ secrets.HARBOR_ROBOT_STACKABLE_GITHUB_ACTION_BUILD_SECRET }}
23+
-
24+
name: Set up Cosign
25+
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # tag=v3.3.0
26+
-
27+
name: Build and push
28+
id: build-and-push
29+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
30+
with:
31+
context: ./
32+
file: ./apps/docker/Dockerfile
33+
push: true
34+
tags: oci.stackable.tech/stackable/ny-tlc-report:0.3.0
35+
build-args: |
36+
REVISION=${{ github.sha }}
37+
VERSION=dev
38+
-
39+
name: Sign the published image
40+
run: cosign sign -y oci.stackable.tech/stackable/ny-tlc-report@${{ steps.build-and-push.outputs.digest }}

apps/BUILD.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
This image is built and published by the `.github/workflows/publish-ny-tlc-report-image.yaml` GH workflow.

0 commit comments

Comments
 (0)