Skip to content

front: always add headers to options to avoid null reference #26

front: always add headers to options to avoid null reference

front: always add headers to options to avoid null reference #26

name: Release staging frontend
on:
push:
branches:
- main
paths:
- 'frontend/**'
- '.github/workflows/staging-frontend.yml'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: grappa-frontend
tags: staging ${{ github.sha }}
context: frontend
containerfiles: |
frontend/Dockerfile
build-args: |
NODE_ENV=staging
BASE_PATH=/grappa/
GIT_SHA=${{ github.sha }}
- name: Push to quay.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/toska
username: toska+github
password: ${{ secrets.QUAY_IO_TOKEN }}