Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis -> GHA #2

Merged
merged 3 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test build

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test-build:
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: |
mkdir s3_deploy
docker run -t \
-v "./s3_deploy:${CONTAINER_MOUNT}" \
-e DEPLOY_TO="${CONTAINER_MOUNT}/${{ env.GITHUB_REPOSITORY }}/${{ github.head_ref || github.ref_name }}" \
cadvisor:build ./.docker/build.sh
- name: Check for build artifact
run: |
find s3_deploy
find s3_deploy -type f -name cadvisor
find s3_deploy -type f -name cadvisor.sha1sum
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

Loading