Skip to content

Script: modify Dockerfile #3

Script: modify Dockerfile

Script: modify Dockerfile #3

Workflow file for this run

# Author: Kang Lin <[email protected]>
name: docker
on:
workflow_call:
outputs:
name:
description: "The artifact name"
value: ${{ jobs.build_docker.outputs.name }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
jobs:
build_docker:
strategy:
matrix:

Check failure on line 18 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 18
PACKAGE: [deb, rpm]
- PACKAGE: deb
image: ubuntu
- PACKAGE: deb
image: "arm64v8/ubuntu"
- PACKAGE: rpm
image: fedora
- PACKAGE: rpm
image: "arm64v8/fedora"
# See: [About GitHub-hosted runners](https://docs.github.com/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners)
# See: [Choosing the runner for a job](https://docs.github.com/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job)
# See: https://github.com/actions/runner-images/
runs-on: ubuntu-latest
env:
RabbitRemoteControl_VERSION: 0.0.32
artifact_name: build_docker
# Map the job outputs to step outputs
outputs:
name: ${{ env.artifact_name }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- name: run docker
run: |
./Script/build_linux.sh --docker --docker-image="${{matrix.image}}" --${{matrix.PACKAGE}}
- name: Update artifact
if: ${{matrix.PACKAGE == 'rpm'}}
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}_${{matrix.PACKAGE}}
path: |
${{github.workspace}}/build_linux/rabbitremotecontrol*.rpm