Skip to content

Commit

Permalink
Travis -> GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNotFound committed Jul 16, 2024
1 parent 96fa466 commit c64b8b4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 23 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: |
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"
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

0 comments on commit c64b8b4

Please sign in to comment.