Skip to content

Commit

Permalink
Add a build action for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinAllen committed Oct 14, 2024
1 parent 4844cf4 commit f037225
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build the Docker Image

on:
pull_request:
types: [ opened, reopened, synchronize ]
branches:
- main

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-image:
runs-on: ubuntu-latest

permissions: write-all

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: false
build-args: |
BROWSER_LICENSE_KEY=${{ secrets.BROWSER_LICENSE_KEY }},
BROWSER_ACCOUNT_ID=${{ secrets.BROWSER_ACCOUNT_ID }},
BROWSER_TRUST_KEY=${{ secrets.BROWSER_TRUST_KEY }},
BROWSER_AGENT_ID=${{ secrets.BROWSER_AGENT_ID }},
BROWSER_APPLICATION_ID=${{ secrets.BROWSER_APPLICATION_ID }}

0 comments on commit f037225

Please sign in to comment.