Skip to content

CI/docker: try to fix syntax error on L31 #94

CI/docker: try to fix syntax error on L31

CI/docker: try to fix syntax error on L31 #94

Workflow file for this run

name: Docker rmw Image CI
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
version:
description: 'version number'
required: true
type: string
default: 'latest'
push:
branches: [ "master" ]
paths:
- '.github/workflows/docker.yml'
- 'docker/Dockerfile'
- 'src/**'
jobs:
docker:
runs-on: ubuntu-latest
env:
VERSION: ${{ inputs.version }}
steps:
- name: Set version
run: |
# If this workflow isn't run manually through a dispatch event
# the version will be blank
if [ -z "$VERSION" ]; then

Check failure on line 31 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
echo "VERSION=latest" >> $GITHUB_ENV
fi
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/rmw:${{ env.VERSION }}