Travis -> GHA #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Build and publishInvalid workflow file
|
||
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" |