Skip to content

Commit

Permalink
Set PR HEAD as image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
oscrx committed Aug 7, 2023
1 parent 01b05a1 commit eb58977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ jobs:
name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v4
env:
DOCKER_METADATA_PR_HEAD_SHA: ${{ github.event_name == 'pull_request' }}
with:
images: |
ghcr.io/${{ github.repository }}/${{ matrix.folder }}
Expand Down
3 changes: 3 additions & 0 deletions charts/drinkn/templates/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ apiVersion: v1
kind: Namespace
metadata:
name: drinkn-pr-{{.Values.pr.number}}
labels:
pod-security.kubernetes.io/warn: restricted
pod-security.kubernetes.io/enforce: baseline
{{- end }}

0 comments on commit eb58977

Please sign in to comment.