Skip to content

Travis -> GHA

Travis -> GHA #1

Workflow file for this run

name: Build and publish
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-publish:
name: Build and Publish
runs-on: ubuntu-20.04
env:
CONTAINER_MOUNT: /build/out
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build container
run: docker build . --pull -t cadvisor:build
- name: Build cadvisor
run: |

Check failure on line 25 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Build and publish

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 25, Col: 14): Unexpected symbol: 'repository_owner/github'. Located at position 8 within expression: github.repository_owner/github.repository
docker run -it \
-v "${{ github.workspace }}/s3_deploy:${CONTAINER_MOUNT}" \
-e DEPLOY_TO="${CONTAINER_MOUNT}/${{ github.repository_owner/github.repository }}/${{ github.ref }}" \
cadvisor:build ./.docker/build.sh
- name: Check for build artifact
run: find ${{ github.workspace }}
- name: Publish
run: echo "Yet to be migrated from Travis"