Skip to content

Commit d67427f

Browse files
committed
chore: move to acr
1 parent 2dbe04c commit d67427f

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
permissions:
99
contents: write
10-
packages: write
10+
id-token: write
1111

1212
jobs:
1313
release:
@@ -30,9 +30,16 @@ jobs:
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232

33-
- name: Log in to GitHub Container Registry
33+
- name: Log in to Azure
34+
uses: azure/login@v2
35+
with:
36+
client-id: ${{ secrets.AZ_SP_CLIENT_ID }}
37+
tenant-id: ${{ secrets.AZ_SP_TENANT_ID }}
38+
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
39+
40+
- name: Log in to Azure Container Registry
3441
run: |
35-
echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io -u ${{ github.actor }} --password-stdin
42+
az acr login --name dotinc --expose-token --output tsv --query accessToken | podman login dotinc.azurecr.io -u 00000000-0000-0000-0000-000000000000 --password-stdin
3643
3744
- name: Build container image with Podman
3845
run: |
@@ -43,11 +50,11 @@ jobs:
4350
--label "org.opencontainers.image.revision=${{ github.sha }}" \
4451
--label "org.opencontainers.image.version=${{ github.ref_name }}" \
4552
--platform linux/amd64 \
46-
-t ghcr.io/dotindustries/ocsp-responder:${{ github.ref_name }} \
47-
-t ghcr.io/dotindustries/ocsp-responder:latest \
53+
-t dotinc.azurecr.io/ocsp-responder:${{ github.ref_name }} \
54+
-t dotinc.azurecr.io/ocsp-responder:latest \
4855
.
4956
5057
- name: Push container image
5158
run: |
52-
podman push ghcr.io/dotindustries/ocsp-responder:${{ github.ref_name }}
53-
podman push ghcr.io/dotindustries/ocsp-responder:latest
59+
podman push dotinc.azurecr.io/ocsp-responder:${{ github.ref_name }}
60+
podman push dotinc.azurecr.io/ocsp-responder:latest

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ make build
3434
### Container Image
3535

3636
```bash
37-
# Pull from GitHub Container Registry
38-
podman pull ghcr.io/dotindustries/ocsp-responder:latest
37+
# Pull from Azure Container Registry
38+
podman pull dotinc.azurecr.io/ocsp-responder:latest
3939
# or with Docker
40-
docker pull ghcr.io/dotindustries/ocsp-responder:latest
40+
docker pull dotinc.azurecr.io/ocsp-responder:latest
4141
```
4242

4343
Or build locally (Podman recommended for better caching):
@@ -232,7 +232,7 @@ Run with Podman (recommended):
232232
```bash
233233
podman run -p 8080:8080 \
234234
-v /path/to/certs:/certs:ro,Z \
235-
ghcr.io/dotindustries/ocsp-responder:latest \
235+
dotinc.azurecr.io/ocsp-responder:latest \
236236
-issuer /certs/ca.pem \
237237
-responder /certs/ocsp.pem \
238238
-key /certs/ocsp-key.pem \
@@ -244,7 +244,7 @@ Or with Docker:
244244
```bash
245245
docker run -p 8080:8080 \
246246
-v /path/to/certs:/certs:ro \
247-
ghcr.io/dotindustries/ocsp-responder:latest \
247+
dotinc.azurecr.io/ocsp-responder:latest \
248248
-issuer /certs/ca.pem \
249249
-responder /certs/ocsp.pem \
250250
-key /certs/ocsp-key.pem \
@@ -300,7 +300,7 @@ Releases are automated via GitHub Actions. To create a release:
300300
2. GitHub Actions will automatically:
301301
- Build binaries for Linux, macOS, and Windows (amd64/arm64)
302302
- Create GitHub release with artifacts
303-
- Build and push container image to GitHub Container Registry (using Podman)
303+
- Build and push container image to Azure Container Registry (using Podman)
304304

305305
For local testing:
306306

0 commit comments

Comments
 (0)