From c64b8b49dad32ab5f88ad95e9060858743530b9f Mon Sep 17 00:00:00 2001 From: Alex Kubacki Date: Tue, 16 Jul 2024 13:56:55 -0600 Subject: [PATCH] Travis -> GHA --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 23 ----------------------- 2 files changed, 35 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..c4afa35707 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f496bc8def..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: generic -sudo: false -services: -- docker -env: - global: - - CONTAINER_MOUNT=/build/out -script: -- docker build . --pull -t cadvisor:build -- docker run -it -v "${TRAVIS_BUILD_DIR}/s3_deploy:${CONTAINER_MOUNT}" -e DEPLOY_TO="${CONTAINER_MOUNT}/${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}" cadvisor:build ./.docker/build.sh -deploy: - skip_cleanup: true - provider: s3 - bucket: aptible-cadvisor - acl: private - local_dir: s3_deploy - access_key_id: - secure: nHpvQ855yox/6wg44G5IFjmjCoQ4NieoUfdOoxBYNNdrZZ2c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