-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
218 changed files
with
3,747 additions
and
1,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,6 @@ snapshot | |
tools | ||
wal | ||
wasp | ||
wasp-cli | ||
!tools/wasp-cli | ||
wasp-cluster | ||
waspdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,18 +12,29 @@ jobs: | |
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
|
||
- name: Pull IOTA SDK bindings | ||
uses: dsaltares/fetch-gh-release-asset@master | ||
with: | ||
repo: 'iotaledger/iota-sdk-native-bindings' | ||
# For now use 'latest' | ||
#version: 'tags/v0.1.0' | ||
regex: true | ||
file: ".*" | ||
target: 'sdk/' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Tar temporary artifacts | ||
run: tar --exclude='temp.tar' -cf temp.tar ./ | ||
|
||
- name: Upload temporary artifacts | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wasp | ||
path: temp.tar | ||
retention-days: 1 | ||
|
||
- name: Set up Node | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].2 | ||
with: | ||
node-version: "14" | ||
|
||
|
@@ -41,7 +52,7 @@ jobs: | |
run: mkdir /dist && cd /dist/ | ||
|
||
- name: Download temporary artifacts | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wasp | ||
|
||
|
@@ -61,7 +72,7 @@ jobs: | |
version: ${{ steps.tagger.outputs.tag }} | ||
steps: | ||
- name: Download temporary artifacts | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wasp | ||
|
||
|
@@ -96,13 +107,26 @@ jobs: | |
type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') }} | ||
type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') }} | ||
- name: Extract CLI metadata (tags, labels) for Docker | ||
id: meta-cli | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: iotaledger/sandbox-wasp-cli | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=match,pattern=v(\d+.\d+),suffix=-alpha,group=1,enable=${{ contains(github.ref, '-alpha') }} | ||
type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') }} | ||
type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') }} | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.IOTALEDGER_DOCKER_USERNAME }} | ||
password: ${{ secrets.IOTALEDGER_DOCKER_PASSWORD }} | ||
|
||
- name: Build and push to Dockerhub | ||
- name: Build and push WASP to Dockerhub | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
|
@@ -114,6 +138,33 @@ jobs: | |
build-args: | | ||
BUILD_LD_FLAGS=-X=github.com/iotaledger/wasp/components/app.Version=${{ steps.tagger.outputs.tag }} | ||
- name: Build and push WASP CLI to Dockerhub | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./tools/wasp-cli/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta-cli.outputs.tags }},iotaledger/sandbox-wasp-cli:latest | ||
labels: ${{ steps.meta-cli.outputs.labels }} | ||
build-args: | | ||
BUILD_LD_FLAGS=-X=github.com/iotaledger/wasp/components/app.Version=${{ steps.tagger.outputs.tag }} | ||
# Push wasp-cli README to Docker Hub | ||
- name: git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: push README to Dockerhub | ||
uses: christian-korneck/update-container-description-action@v1 | ||
env: | ||
DOCKER_USER: ${{ secrets.IOTALEDGER_DOCKER_USERNAME }} | ||
DOCKER_PASS: ${{ secrets.IOTALEDGER_DOCKER_PASSWORD }} | ||
with: | ||
destination_container_repo: iotaledger/sandbox-wasp-cli | ||
provider: dockerhub | ||
short_description: 'wasp-cli is a command line tool for interacting with IOTA Wasp and its smart contracts.' | ||
readme_file: 'tools/wasp-cli/README.md' | ||
|
||
release-iscmagic: | ||
uses: ./.github/workflows/publish-iscmagic.yml | ||
needs: release-docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ go.work | |
go.work.sum | ||
TMP* | ||
tmp.* | ||
sdk/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.