Skip to content

Commit 770398d

Browse files
Add ghcr image
Signed-off-by: Matthew DeVenny <matt@boxboat.com>
1 parent 682104c commit 770398d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/docker.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
tag="${GITHUB_REF#refs/tags/}"
2424
if [ "$branch" != "$GITHUB_REF" ]; then
2525
branch="$(echo "$branch" | sed -e 's/[^a-zA-Z0-9\-\.]/-/g')"
26-
echo "::set-output name=TAGS::boxboat/okta-nginx:commit-${branch}"
26+
echo "TAGS=boxboat/okta-nginx:commit-${branch},ghcr.io/boxboat/okta-nginx:commit-${branch}" >> $GITHUB_OUTPUT
2727
elif [ "$tag" != "$GITHUB_REF" ]; then
2828
latest=""
2929
if ! echo "$tag" | grep -qF '-'; then
30-
latest=",boxboat/okta-nginx:latest"
30+
latest=",boxboat/okta-nginx:latest,ghcr.io/boxboat/okta-nginx:latest"
3131
fi
3232
tag="$(echo "$tag" | sed -e 's/[^a-zA-Z0-9\-\.]/-/g')"
33-
echo "::set-output name=TAGS::boxboat/okta-nginx:${tag}${latest}"
33+
echo "TAGS=boxboat/okta-nginx:${tag},ghcr.io/boxboat/okta-nginx:${tag}${latest}" >> $GITHUB_OUTPUT
3434
else
3535
echo "unable to determine tag" >&2
3636
exit 1
@@ -45,9 +45,16 @@ jobs:
4545
username: ${{ secrets.DOCKERHUB_USERNAME }}
4646
password: ${{ secrets.DOCKERHUB_PASSWORD }}
4747

48+
- name: Login to GitHub Container Registry
49+
uses: docker/login-action@v3
50+
with:
51+
registry: ghcr.io
52+
username: ${{ github.repository_owner }}
53+
password: ${{ secrets.GITHUB_TOKEN }}
54+
4855
- name: Build and push
4956
id: docker_build
50-
uses: docker/build-push-action@v5
57+
uses: docker/build-push-action@v6
5158
with:
5259
push: true
5360
tags: "${{ steps.compute_tags.outputs.TAGS }}"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# okta-nginx
22

33
This repository builds a Docker Image that protects an upstream server using [Okta's OpenID Connect](https://developer.okta.com/docs/api/resources/oidc) `Authorization Code` flow
4+
Images can be found at [boxboat/okta-nginx](https://hub.docker.com/r/boxboat/okta-nginx) or [ghcr.io/boxboat/okta-nginx](https://github.com/boxboat/okta-nginx/pkgs/container/okta-nginx)
45

56
## Prerequisites
67

0 commit comments

Comments
 (0)