Skip to content

trying different if statement #12

trying different if statement

trying different if statement #12

Workflow file for this run

name: Docker Image creator for sassbot experimental
on:
push:
branches:
- master
- flexiefae
jobs:
include:
- if: ${{ github.ref_name == 'master' }}

Check failure on line 11 in .github/workflows/publish-ghcr.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-ghcr.yaml

Invalid workflow file

You have an error in your yaml syntax on line 11
env:
- IMAGEVER="latest"
- if: ${{ github.ref_name == 'flexiefae' }}
env:
- IMAGEVER="experimental"
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: bombg
password: ${{ secrets.GH_PAT }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/bombg/sassbot:${IMAGEVER}
platforms: linux/arm64, linux/amd64