Skip to content

Commit

Permalink
chore: Upload nox binaries to s3 (#2298)
Browse files Browse the repository at this point in the history
* Upload nox binaries to s3

* Publish binaries in the end

* Add latest compatible ccp release to release notes

* F
  • Loading branch information
nahsi authored Jul 23, 2024
1 parent 97b39b7 commit 6dcbe67
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
jwtTtl: 300
secrets: |
kv/hub.docker.com/fluencebot username | DOCKER_USERNAME ;
kv/hub.docker.com/fluencebot password | DOCKER_PASSWORD
kv/hub.docker.com/fluencebot password | DOCKER_PASSWORD ;
kv/ci/fluence-artifacts id | AWS_ACCESS_KEY_ID ;
kv/ci/fluence-artifacts secret | AWS_SECRET_ACCESS_KEY
- name: Download nox binaries
uses: actions/download-artifact@v4
Expand All @@ -70,15 +72,6 @@ jobs:
echo "sha256_${arch}=${sha}" >> $GITHUB_OUTPUT
done
- name: Upload nox binary
uses: softprops/action-gh-release@v1
with:
files: |
./docker/nox-amd64
./docker/nox-arm64
./docker/nox_SHA256_SUMS
tag_name: ${{ inputs.tag }}

- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -118,3 +111,20 @@ jobs:
Rust implementation of the Fluence network peer.
https://github.com/fluencelabs/nox
readme-filepath: ./docker/README.md

- name: Upload nox binary to releases
uses: softprops/action-gh-release@v1
with:
files: |
./docker/nox-amd64
./docker/nox-arm64
./docker/nox_SHA256_SUMS
tag_name: ${{ inputs.tag }}

- name: Upload nox binary to s3
uses: osiegmar/s3-publisher-action@v1
with:
bucket: fluence-artifacts
dir: ./docker
prefix: nox/${{ inputs.version }}
include: nox-*
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,32 @@ jobs:
RELEASE_VERSION: ${{ needs.release-please.outputs.version }}

steps:
- name: Get latest ccp release
id: ccp
uses: pozetroninc/github-action-get-latest-release@v0.8.0
with:
owner: fluencelabs
repo: capacity-commitment-prover
excludes: prerelease, draft
token: ${{ secrets.FLUENCEBOT_RELEASE_PLEASE_PAT }}

- name: Format ccp release name
id: ccp-formated
# For docker container tag
env:
CCP_RELEASE: ${{ steps.ccp.outputs.release }}
run: echo "release=${CCP_RELEASE/-v/:}" >> $GITHUB_OUTPUT

- name: Update release notes
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.release-please.outputs.tag-name }}
append_body: true
body: |
## Compatible CCP release
[${{ steps.ccp.outputs.release }}](https://files.fluence.dev/buckets/fluence-artifacts/ccp/${{ steps.ccp.outputs.release }})
fluencelabs/ccp:${{ steps.ccp-formated.outputs.release }}
## Docker tags
Expand Down

0 comments on commit 6dcbe67

Please sign in to comment.