Skip to content

Commit

Permalink
Merge pull request #23 from gkeesh7/container_signing
Browse files Browse the repository at this point in the history
Experimenting with container signing
  • Loading branch information
gkeesh7 authored Aug 26, 2024
2 parents a7ae6fd + 4c2c87e commit 752cda4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/publish-package-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ jobs:
docker login --username gkeesh7 --password ${{ secrets.GH_PAT }} ghcr.io
docker build . --file Dockerfile --tag ghcr.io/gkeesh7/url-shortner:latest
docker push ghcr.io/gkeesh7/url-shortner:latest
- uses: sigstore/cosign-installer@main

- name: Write signing key to disk
run: echo "${{ secrets.SIGNING_SECRET }}" > cosign.key

- name: Sign the image
run: |
cosign sign -key cosign.key ghcr.io/gkeesh7/url-shortner:latest
env:
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ services:
ports:
- 3000:3000
depends_on:
- prometheus
- prometheus

db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: yes
ports:
- "3306:3306"

0 comments on commit 752cda4

Please sign in to comment.