Skip to content

Update workflows

Update workflows #8

Workflow file for this run

name: Frosting Frontend
on:
push:
paths:
- frontend/**
jobs:
push:
name: "Build search frontend"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
if: ${{ secrets.DOCKERHUB_USERNAME != '' }}

Check failure on line 19 in .github/workflows/frontend.yaml

View workflow run for this annotation

GitHub Actions / Frosting Frontend

Invalid workflow file

The workflow is not valid. .github/workflows/frontend.yaml (Line: 19, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DOCKERHUB_USERNAME != '' .github/workflows/frontend.yaml (Line: 23, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DOCKERHUB_USERNAME != ''
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
if: ${{ secrets.DOCKERHUB_USERNAME != '' }}
- name: Login to DockerHub Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: ${{ secrets.DOCKERHUB_USERNAME != '' }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./frontend
platforms: linux/amd64,linux/arm64
push: true
tags: "${{ secrets.DOCKERHUB_USERNAME }}/frosting:${{ github.sha }},${{ secrets.DOCKERHUB_USERNAME }}/frosting:latest"
if: ${{ secrets.DOCKERHUB_USERNAME != '' }}
- name: Create staging
if: github.ref == 'refs/heads/main'
run: docker buildx imagetools create -t ${{ secrets.DOCKERHUB_USERNAME }}/frosting:staging ${{ secrets.DOCKERHUB_USERNAME }}/frosting:latest
if: ${{ secrets.DOCKERHUB_USERNAME != '' }}
- name: Generate summary
run: |
echo "Tag: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY