Skip to content

Commit

Permalink
refactor actions to a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmance committed Nov 8, 2024
1 parent e29a09a commit c303501
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 123 deletions.
95 changes: 0 additions & 95 deletions .github/actions/dev-ipfs-pin/action.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
name: Pin to private cluster
description: Upload build to ipfs nodes running in GKE
name: Pin to ipfs cluster and nodes
description: Upload build to ipfs node
inputs:
BUILD_PATH:
description: path to the build directory
required: true
DOMAIN:
description: Domain to unpin
required: true
GCP_SA_KEY:
description: ''
required: true
GKE_CLUSTER:
description: ''
required: true
GKE_CLUSTER_REGION:
description: ''
required: true
PINATA_HASH:
description: ''
required: true
Expand All @@ -37,9 +25,9 @@ runs:
continue-on-error: false
shell: bash
run: |
tar -czf app.tar.gz './${{ inputs.BUILD_PATH }}'
rm -rf ./key
echo -n "${{ inputs.IPFS_SERVER_KEY }}" | base64 -d >> ./key
chmod 400 ./key
echo -n "${{ inputs.IPFS_SERVER_KEY }}" | base64 -d >> ./key && chmod 400 ./key
- name: Upload build to IPFS Primary Server
id: ipfs-scp-primary
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build-test-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,8 @@ jobs:

- name: Pin to primary IPFS server
id: ipfs-primary
uses: ./.github/actions/dev-ipfs-pin
uses: ./.github/actions/ipfs-pin
with:
GCP_SA_KEY: '${{ secrets.GCP_SA_KEY }}'
GKE_CLUSTER: '${{ secrets.GKE_CLUSTER }}'
GKE_CLUSTER_REGION: '${{ secrets.GKE_CLUSTER_REGION }}'
IPFS_SERVER_PORT: '${{ secrets.IPFS_PRIMARY_SERVER_PORT }}'
IPFS_SERVER: '${{ secrets.IPFS_PRIMARY_SERVER }}'
IPFS_SERVER_KEY: '${{ secrets.IPFS_PRIMARY_SERVER_KEY }}'
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/test-deploy-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,8 @@ jobs:

- name: Pin to primary IPFS server
id: ipfs-primary
uses: ./.github/actions/dev-ipfs-pin
uses: ./.github/actions/ipfs-pin
with:
GCP_SA_KEY: '${{ secrets.GCP_SA_KEY }}'
GKE_CLUSTER: '${{ secrets.GKE_CLUSTER }}'
GKE_CLUSTER_REGION: '${{ secrets.GKE_CLUSTER_REGION }}'
IPFS_SERVER_PORT: '${{ secrets.IPFS_PRIMARY_SERVER_PORT }}'
IPFS_SERVER: '${{ secrets.IPFS_PRIMARY_SERVER }}'
IPFS_SERVER_KEY: '${{ secrets.IPFS_PRIMARY_SERVER_KEY }}'
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/update-prod-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:

- name: Pin to primary IPFS server
id: ipfs-primary
uses: ./.github/actions/production-ipfs-pin
uses: ./.github/actions/ipfs-pin
with:
DOMAIN: app.aave.com
IPFS_SERVER_PORT: '${{ secrets.IPFS_PRIMARY_SERVER_PORT }}'
IPFS_SERVER: '${{ secrets.IPFS_PRIMARY_SERVER }}'
IPFS_SERVER_KEY: '${{ secrets.IPFS_PRIMARY_SERVER_KEY }}'
Expand Down Expand Up @@ -82,9 +81,8 @@ jobs:

- name: Pin to primary IPFS server
id: ipfs-primary
uses: ./.github/actions/production-ipfs-pin
uses: ./.github/actions/ipfs-pin
with:
DOMAIN: staging.aave.com
IPFS_SERVER_PORT: '${{ secrets.IPFS_PRIMARY_SERVER_PORT }}'
IPFS_SERVER: '${{ secrets.IPFS_PRIMARY_SERVER }}'
IPFS_SERVER_KEY: '${{ secrets.IPFS_PRIMARY_SERVER_KEY }}'
Expand Down

0 comments on commit c303501

Please sign in to comment.