add production image build

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2025-10-30 21:55:40 +01:00
parent 6ce80afcdd
commit c960e93ad2
2 changed files with 18 additions and 1 deletions

View File

@@ -96,6 +96,23 @@ jobs:
phishingclub \
phishingclub.sig
- name: Build and push production Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.release
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ steps.get_version.outputs.VERSION }}
ghcr.io/${{ github.repository }}:latest
labels: |
org.opencontainers.image.title=PhishingClub
org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.version=${{ steps.get_version.outputs.VERSION }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
org.opencontainers.image.revision=${{ github.sha }}
- name: Extract release notes from RELEASE.md
id: get_release_notes
run: |

View File

@@ -49,7 +49,7 @@ jobs:
mkdir -p backend/frontend/build
cp -r frontend/build/* backend/frontend/build/
- name: Build single binary with all features
- name: Build binary
run: |
sudo docker run --rm \
-v "$(pwd)":/app \