Skip to content

Commit fe4a2e7

Browse files
authored
Add chainguard image pull workflow (#52)
1 parent 1714c50 commit fe4a2e7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/chainguard.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Chainguard Image Updates
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
permissions:
9+
id-token: write
10+
11+
jobs:
12+
pull-image:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: chainguard-dev/setup-chainctl@main
17+
with:
18+
identity: ${{ secrets.CHAINGUARD_IDENTITY }}
19+
20+
- name: Login to Azure Container Registry
21+
uses: azure/docker-login@v1
22+
with:
23+
login-server: uticplatform.azurecr.io
24+
username: ${{ secrets.PLATFORM_ACR_USERNAME }}
25+
password: ${{ secrets.PLATFORM_ACR_PASSWORD }}
26+
27+
# TODO make this a matrix job
28+
- name: Pull and push chainguardpython image
29+
run: |
30+
docker pull cgr.dev/chainguard/python:latest-3.12
31+
docker tag cgr.dev/chainguard/python:latest-3.12 uticplatform.azurecr.io/chainguard/python:latest-3.12
32+
docker push uticplatform.azurecr.io/chainguard/python:latest-3.12

0 commit comments

Comments
 (0)