Skip to content

Commit

Permalink
Fix nonroot image being 'latest' (#397)
Browse files Browse the repository at this point in the history
* Fix nonroot image being 'latest'

* make it possible to disparch a workflow
  • Loading branch information
almarklein authored Sep 6, 2023
1 parent 78acc9f commit 2fb7758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: "Build and push release docker image"

on:
workflow_dispatch:
push:
tags:
- "v*"
Expand All @@ -11,9 +12,12 @@ permissions:
packages: write

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 @@ -74,7 +78,7 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}
tags: type=ref,event=tag,suffix=-nonroot

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit 2fb7758

Please sign in to comment.