Skip to content

Pull image only once. #4

Pull image only once.

Pull image only once. #4

Workflow file for this run

name: Reusable Workflow
on:
workflow_dispatch:
workflow_call:
inputs:
python-version:
required: false
type: string
default: '3.12'
mm-type:
required: true
type: string
mm-branch:
required: false
type: string
default: 'master'
mm-auth:
required: false
type: string
default: ''
rtppc-type:
required: true
type: string
artifact-files:
required: false
type: string
default: ''
jobs:
load:
runs-on: ubuntu-latest
- name: Download saved Docker image

Check failure on line 33 in .github/workflows/.main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/.main.yml

Invalid workflow file

You have an error in your yaml syntax on line 33
uses: actions/download-artifact@v4
with:
name: rtpproxy_latest_ubuntu_latest
- name: Load Docker image
run: |
find ./ -type f -cmin -3
docker load -i rtpproxy_latest_ubuntu_latest.tar
test:
needs: load
runs-on: ubuntu-latest
container:
image: sippylabs/rtpproxy:latest-ubuntu_latest
options: --privileged
env:
MM_TYPE: ${{ inputs.mm-type }}
MM_BRANCH: ${{ inputs.mm-branch }}
RTPP_BRANCH: DOCKER
RTPPC_TYPE: ${{ inputs.rtppc-type }}
PYTHON_CMD: "python${{ inputs.python-version }}"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: before_install
run: sh -x cibits/before_install.sh
- name: transform_var
id: transform_var
run: |
ARTNAME="test-logs_${{ inputs.mm-type }}_${{ inputs.mm-branch }}_${{ inputs.rtppc-type }}"
MM_AUTH="`echo "${{ inputs.mm-auth }}" | sed 's|/|.|g'`"
if [ "${MM_AUTH}" != "" ]
then
ARTNAME="${ARTNAME}_${MM_AUTH}"
echo "MM_AUTH=${{ inputs.mm-auth }}" >> $GITHUB_ENV
fi
echo "ARTNAME=${ARTNAME}" >> $GITHUB_OUTPUT
- name: script
run: sh -x ./test_run.sh
- name: Test logs
uses: actions/upload-artifact@v4
with:
name: ${{ steps.transform_var.outputs.ARTNAME }}
path: |
bob.log
alice.log
rtpproxy.log
${{ inputs.artifact-files }}
continue-on-error: true