Skip to content

Build and publish frontend Docker container #2

Build and publish frontend Docker container

Build and publish frontend Docker container #2

Workflow file for this run

name: Build frontend
on:
pull_request:
branches: ["main"]
jobs:
publish:
name: Publish frontend
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install Docker credentials
run: echo "${GITHUB_TOKEN}" | docker login ghcr.io -u $ --password-stdin
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Build
uses: docker/build-push-action@v4
with:
context: frontend
file: ./frontend/Dockerfile
push: false
tags: ghcr.io/buildbarn/bb-portal-frontend:${{ github.sha }}