Skip to content

Commit

Permalink
debug: [delete me] disable part of the pre-release in order to test
Browse files Browse the repository at this point in the history
  • Loading branch information
brushknight committed Jun 14, 2021
1 parent dbca8e3 commit 2f7f4d7
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 86 deletions.
172 changes: 86 additions & 86 deletions .github/workflows/prerelease_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,81 +18,81 @@ env:
DOCKER_HUB_ID: ${{ secrets.OHAI_DOCKER_HUB_ID }}
DOCKER_HUB_PASSWORD: ${{ secrets.OHAI_DOCKER_HUB_PASSWORD }}
SCHEMA_BRANCH: ${{ github.event.release.tag_name }}
AWS_S3_BUCKET_NAME: "nr-downloads-ohai-staging"
AWS_S3_LOCK_BUCKET_NAME: "onhost-ci-lock-staging"
AWS_S3_BUCKET_NAME: "nr-downloads-ohai-testing"
AWS_S3_LOCK_BUCKET_NAME: "onhost-ci-lock-testing"
AWS_REGION: "us-east-1"
DOCKER_PUBLISH: true

jobs:
unit-test-linux:
name: Linux unit tests
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{env.GO_VERSION}}

- name: Validate code
run: make ci/validate

- name: Running unit tests
run: make ci/test-coverage

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info
flag-name: run-linux
parallel: true

harvest-test-linux:
name: Linux harvest tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-16.04 ]
steps:
- uses: actions/checkout@v2

- name: Running Harvest tests
run: make linux/harvest-tests

proxy-tests-linux:
name: Proxy tests
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}

- name: Running proxy tests
run: make proxy-test

finish:
name: Finish
needs: [ unit-test-linux ]
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
# unit-test-linux:
# name: Linux unit tests
# runs-on: ubuntu-20.04
#
# steps:
# - uses: actions/checkout@v2
#
# - name: Install Go
# uses: actions/setup-go@v2
# with:
# go-version: ${{env.GO_VERSION}}
#
# - name: Validate code
# run: make ci/validate
#
# - name: Running unit tests
# run: make ci/test-coverage
#
# - name: Coveralls Parallel
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: lcov.info
# flag-name: run-linux
# parallel: true
#
# harvest-test-linux:
# name: Linux harvest tests
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ ubuntu-18.04, ubuntu-16.04 ]
# steps:
# - uses: actions/checkout@v2
#
# - name: Running Harvest tests
# run: make linux/harvest-tests
#
# proxy-tests-linux:
# name: Proxy tests
# runs-on: ubuntu-20.04
# steps:
# - name: Check out code
# uses: actions/checkout@v2
#
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ env.DOCKER_HUB_ID }}
# password: ${{ env.DOCKER_HUB_PASSWORD }}
#
# - name: Running proxy tests
# run: make proxy-test
#
# finish:
# name: Finish
# needs: [ unit-test-linux ]
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# parallel-finished: true

packaging-linux:
name: Build and upload all artifacts into GH Release assets
runs-on: ubuntu-20.04
needs: [unit-test-linux, harvest-test-linux, proxy-tests-linux]
# needs: [unit-test-linux, harvest-test-linux, proxy-tests-linux]

steps:
- uses: actions/checkout@v2
Expand All @@ -106,20 +106,20 @@ jobs:
- name: Releasing linux packages
run: make ci/prerelease

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and publish Release Candidate (RC) of base Docker image
run: make -C build/container/ clean publish/multi-arch-base-rc AGENT_VERSION=${{env.TAG}}

- name: Build and publish Release Candidate (RC) of forwarder Docker image
run: make -C build/container/ clean publish/multi-arch-forwarder-rc AGENT_VERSION=${{env.TAG}}

- name: Build and publish Release Candidate (RC) of k8s-events-forwarders Docker image
run: make -C build/container/ clean publish/multi-arch-k8s-events-forwarder-rc AGENT_VERSION=${{env.TAG}}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
#
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
#
# - name: Build and publish Release Candidate (RC) of base Docker image
# run: make -C build/container/ clean publish/multi-arch-base-rc AGENT_VERSION=${{env.TAG}}
#
# - name: Build and publish Release Candidate (RC) of forwarder Docker image
# run: make -C build/container/ clean publish/multi-arch-forwarder-rc AGENT_VERSION=${{env.TAG}}
#
# - name: Build and publish Release Candidate (RC) of k8s-events-forwarders Docker image
# run: make -C build/container/ clean publish/multi-arch-k8s-events-forwarder-rc AGENT_VERSION=${{env.TAG}}

publishing-to-s3:
name: Publish linux artifacts into s3 test bucket
Expand All @@ -130,7 +130,7 @@ jobs:
max-parallel: 1
matrix:
assetsType:
- "targz"
# - "targz"
- "deb"
- "rpm"

Expand All @@ -143,10 +143,10 @@ jobs:
- name: Publish ${{ matrix.assetsType }} to S3 action
uses: newrelic/infrastructure-publish-action@v1.0.10
env:
AWS_ACCESS_KEY_ID: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_STAGING }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_STAGING }}
AWS_ROLE_ARN: ${{ secrets.OHAI_AWS_ROLE_ARN_STAGING }}
AWS_ROLE_SESSION_NAME: ${{ secrets.OHAI_AWS_ROLE_SESSION_NAME_STAGING }}
AWS_ACCESS_KEY_ID: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_TESTING }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_TESTING }}
AWS_ROLE_ARN: ${{ secrets.OHAI_AWS_ROLE_ARN_TESTING }}
AWS_ROLE_SESSION_NAME: ${{ secrets.OHAI_AWS_ROLE_SESSION_NAME_TESTING }}
with:
tag: ${{env.TAG}}
app_name: "newrelic-infra"
Expand Down
File renamed without changes.

0 comments on commit 2f7f4d7

Please sign in to comment.