Skip to content

Commit

Permalink
Merge pull request #523 from danielhass/non-root-latest
Browse files Browse the repository at this point in the history
#411 - Added latest-nonroot image tag
  • Loading branch information
almarklein authored Jan 6, 2025
2 parents f48db71 + 5451a07 commit 62c1dc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ permissions:
jobs:

# Build default priviliged container image version
# We make it need the other jobs, so this comes last and becomes the "latest"
docker-root:
runs-on: ubuntu-latest
needs: [docker-nonroot]
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -77,7 +75,12 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
tags: type=ref,event=tag,suffix=-nonroot
# no "latest" tag for non-root variant
flavor: latest=false
tags: |
type=ref,event=tag,suffix=-nonroot
# set latest-nonroot tag for default branch
type=raw,value=latest-nonroot
- name: Build and push Docker image
uses: docker/build-push-action@v4
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker-compose.nonroot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
version: "3"
services:
timetagger:
image: ghcr.io/almarklein/timetagger:v23.9.2-nonroot
image: ghcr.io/almarklein/timetagger:latest-nonroot
ports:
- "80:80"
volumes:
Expand Down

0 comments on commit 62c1dc7

Please sign in to comment.