Skip to content

Merge pull request #245 from projectblacklight/dependabot/bundler/dep… #29

Merge pull request #245 from projectblacklight/dependabot/bundler/dep…

Merge pull request #245 from projectblacklight/dependabot/bundler/dep… #29

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main # Trigger on push to the main branch
jobs:
build-and-push-docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # Required to push to GitHub Container Registry
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: .docker/app/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}:latest