Skip to content

Commit

Permalink
Add prod workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
reckseba committed May 4, 2024
1 parent cd61ff5 commit 0c497e1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Prod

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [main]
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build and Publish to Github Packages Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: reckseba/2a5-app/2a5-app-prod
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile
tags: latest

0 comments on commit 0c497e1

Please sign in to comment.