Skip to content

Commit

Permalink
build with custom image
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin committed Nov 10, 2020
1 parent e86a547 commit 265f9e1
Showing 1 changed file with 28 additions and 39 deletions.
67 changes: 28 additions & 39 deletions .github/workflows/build-test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:
jobs:
build:
runs-on: ubuntu-18.04
# container:
# image: replicated/troubleshoot-builder:18.04
# credentials:
# username: repldeploy2
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
container:
image: replicated/troubleshoot-builder:18.04
credentials:
username: repldeploy2
password: ${{ secrets.DOCKERHUB_PASSWORD }}
steps:
- uses: actions/setup-go@v1
with:
Expand All @@ -29,15 +29,15 @@ jobs:

- uses: actions/checkout@v2

- run: make ga-deps test
- run: make test

compile-preflight:
runs-on: ubuntu-18.04
# container:
# image: replicated/troubleshoot-builder:18.04
# credentials:
# username: repldeploy2
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
container:
image: replicated/troubleshoot-builder:18.04
credentials:
username: repldeploy2
password: ${{ secrets.DOCKERHUB_PASSWORD }}
needs: build
steps:
- uses: actions/setup-go@v1
Expand All @@ -49,41 +49,38 @@ jobs:
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- uses: actions/checkout@master
- run: make ga-deps preflight
- run: make preflight
- uses: actions/upload-artifact@v1
with:
name: preflight
path: bin/preflight

validate-preflight:
runs-on: ubuntu-18.04
# container:
# image: replicated/troubleshoot-builder:18.04
# credentials:
# username: repldeploy2
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
container:
image: replicated/troubleshoot-builder:18.04
credentials:
username: repldeploy2
password: ${{ secrets.DOCKERHUB_PASSWORD }}
needs: compile-preflight
steps:
- uses: actions/checkout@master
- run: make ga-deps
- name: Download preflight binary
uses: actions/download-artifact@v1
with:
name: preflight
path: bin/
- uses: engineerd/setup-kind@v0.4.0
# - run: sudo apt-get -y update
# - run: sudo apt-get install --no-install-recommends -y libc6 libc-bin
- run: chmod +x bin/preflight
- run: ./bin/preflight --interactive=false --format=json https://preflight.replicated.com

compile-supportbundle:
runs-on: ubuntu-18.04
# container:
# image: replicated/troubleshoot-builder:18.04
# credentials:
# username: repldeploy2
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
container:
image: replicated/troubleshoot-builder:18.04
credentials:
username: repldeploy2
password: ${{ secrets.DOCKERHUB_PASSWORD }}
needs: build
steps:
- uses: actions/setup-go@v1
Expand All @@ -95,7 +92,7 @@ jobs:
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- uses: actions/checkout@master
- run: make ga-deps support-bundle
- run: make support-bundle
- uses: actions/upload-artifact@v1
with:
name: support-bundle
Expand All @@ -106,29 +103,24 @@ jobs:
needs: compile-supportbundle
steps:
- uses: actions/checkout@master
- run: make ga-deps
- name: Download support-bundle binary
uses: actions/download-artifact@v1
with:
name: support-bundle
path: bin/
- uses: engineerd/setup-kind@v0.4.0
- run: dpkg -l | grep libc
# - run: sudo apt-get -y update
# - run: sudo apt-get install --no-install-recommends -y libc6 libc-bin
- run: dpkg -l | grep libc
- run: chmod +x bin/support-bundle
- run: ./bin/support-bundle ./examples/support-bundle/sample-collectors.yaml
- run: ./bin/support-bundle ./examples/support-bundle/sample-supportbundle.yaml
- run: ./bin/support-bundle https://kots.io

goreleaser:
runs-on: ubuntu-18.04
# container:
# image: replicated/troubleshoot-builder:18.04
# credentials:
# username: repldeploy2
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
container:
image: replicated/troubleshoot-builder:18.04
credentials:
username: repldeploy2
password: ${{ secrets.DOCKERHUB_PASSWORD }}
needs:
- validate-preflight
if: startsWith(github.ref, 'refs/tags/v')
Expand All @@ -144,9 +136,6 @@ jobs:
- name: Unshallow
run: git fetch --prune --unshallow

- name: Deps
run: make ga-deps

- uses: actions/setup-go@v1
with:
go-version: "1.14"
Expand Down

0 comments on commit 265f9e1

Please sign in to comment.