Skip to content

Commit a8d4962

Browse files
chriscpaulCopilot
andcommitted
backfill: build v0.0.5-alpha and push to ACR
Build from the exact commit that produced v0.0.5-alpha and publish to ACR with attestation. This branch can be deleted after the backfill completes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a5791d4 commit a8d4962

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/release_acr.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Backfill v0.0.5-alpha to ACR
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- backfill-acr-v0.0.5-alpha
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
release:
14+
name: Build and Release OCI Image
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
19+
id-token: write
20+
attestations: write
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
29+
30+
- name: Log in to Azure Container Registry (ACR)
31+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
32+
with:
33+
registry: ${{ secrets.ACR_MODA_REGISTRY }}
34+
username: ${{ secrets.ACR_MODA_USER }}
35+
password: ${{ secrets.ACR_MODA_TOKEN }}
36+
37+
- name: Build and push Docker image to ACR
38+
id: build
39+
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
40+
with:
41+
context: .
42+
file: ./Dockerfile
43+
push: true
44+
tags: ${{ secrets.ACR_MODA_REGISTRY }}/artifact-attestations-opa-provider:v0.0.5-alpha
45+
platforms: linux/amd64,linux/arm64
46+
47+
- name: Attest build provenance for ACR
48+
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
49+
with:
50+
subject-name: ${{ secrets.ACR_MODA_REGISTRY }}/artifact-attestations-opa-provider
51+
subject-digest: ${{ steps.build.outputs.digest }}
52+
push-to-registry: true

0 commit comments

Comments
 (0)