forked from google/cadvisor
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 962 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: |
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
- name: Publish
run: echo "Yet to be migrated from Travis"