Skip to content

CI: modify version in test master #5

CI: modify version in test master

CI: modify version in test master #5

Workflow file for this run

# Author: Kang Lin <kl222@126.com>
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:
variant:
- PACKAGE: deb
image: ubuntu
lable: ":24.04"
os: ubuntu-24.04
- PACKAGE: deb
image: ubuntu
lable: ":24.04"
os: ubuntu-24.04-arm
- PACKAGE: rpm
image: fedora
lable: ":41"
os: ubuntu-24.04
- PACKAGE: rpm
image: fedora
lable: ":41"
os: ubuntu-24.04-arm
# 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: ${{matrix.variant.os}}
env:
RabbitRemoteControl_VERSION: 0.0.36
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
# fetch-depth: 0

Check failure on line 56 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 56
- name: run depley.sh
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: |
echo "RabbitRemoteControl_VERSION=`git describe --tags --match "v*"`" >> $GITHUB_ENV
./depley.sh
- name: run docker
run: |
./Script/build_linux.sh --docker --docker-image="${{matrix.variant.image}}${{matrix.variant.lable}}" --${{matrix.variant.PACKAGE}}
- name: Update artifact
if: ${{matrix.variant.PACKAGE == 'rpm'}}
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}_${{matrix.variant.PACKAGE}}_${{matrix.variant.image}}_${{matrix.variant.os}}
path: |
${{github.workspace}}/build_linux/rabbitremotecontrol*.rpm