Skip to content

Commit

Permalink
chore(ci): Update install.sh workflow to not publish to AWS (#21412)
Browse files Browse the repository at this point in the history
* chore(ci): Update install.sh workflow to not publish to AWS

We no longer host install.sh in AWS S3 but instead reference it from GitHub. This change happened
a while ago, but we apparently never updated the CI wrokflow; we just never noticed since we haven't
changed the script since then.

Signed-off-by: Jesse Szwedko <[email protected]>

* readd missing steps

Signed-off-by: Jesse Szwedko <[email protected]>

* whitespace

Signed-off-by: Jesse Szwedko <[email protected]>

* Remove duplicate step

Signed-off-by: Jesse Szwedko <[email protected]>

---------

Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko authored Oct 4, 2024
1 parent f9b07db commit 0cda47c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/install-sh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ on:
workflow_dispatch:

jobs:

sync-install:
test-install:
runs-on: ubuntu-20.04
timeout-minutes: 10
timeout-minutes: 5
steps:
- name: (PR comment) Get PR branch
if: ${{ github.event_name == 'issue_comment' }}
Expand All @@ -34,35 +33,10 @@ jobs:
if: ${{ github.event_name != 'issue_comment' }}
uses: actions/checkout@v3

- run: pip3 install awscli --upgrade --user
- env:
AWS_ACCESS_KEY_ID: "${{ secrets.CI_AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.CI_AWS_SECRET_ACCESS_KEY }}"
run: make sync-install

- name: (PR comment) Set latest commit status as failed
uses: myrotvorets/[email protected]
if: failure() && github.event_name == 'issue_comment'
with:
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.GITHUB_TOKEN }}
context: Update install.sh Suite
status: 'failure'

test-install:
needs: sync-install
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- run: sudo apt-get install --yes curl bc
- run: curl --proto '=https' --tlsv1.2 -sSfL https://sh.vector.dev | bash -s -- -y
- run: sudo apt-get install --yes bc
- run: bash distribution/install.sh -- -y
- run: ~/.vector/bin/vector --version

- name: (PR comment) Get PR branch
if: github.event_name == 'issue_comment'
uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch

- name: (PR comment) Set latest commit status as ${{ job.status }}
if: github.event_name == 'issue_comment'
uses: myrotvorets/[email protected]
Expand Down
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,6 @@ release-push: ## Push new Vector version
release-s3: ## Release artifacts to S3
@cargo vdev release s3

.PHONY: sync-install
sync-install: ## Sync the install.sh script for access via sh.vector.dev
@aws s3 cp distribution/install.sh s3://sh.vector.dev --sse --acl public-read

.PHONY: sha256sum
sha256sum: ## Generate SHA256 checksums of CI artifacts
scripts/checksum.sh
Expand Down

0 comments on commit 0cda47c

Please sign in to comment.