Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/dispatch_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ jobs:
run: |
echo "Event '${{ github.event.action }}' with tag: '${{ github.event.client_payload.tag }}'"
echo "::set-output name=TAG::${{ github.event.client_payload.tag }}"
echo VERSION=${{ github.event.client_payload.tag }} > .env
echo UPSTREAM_VERSION=${{ github.event.client_payload.tag }} > .env

- name: Setup nodejs
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: "10.x"

- name: dappnodesdk install
run: npm install -g @dappnode/dappnodesdk

- name: Get next DAppNodePackage release
id: next-release
run: echo "::set-output name=DNP_VERSION::$(dappnodesdk next patch -p remote)"

- name: Check and delete if a release already exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
run: |
RELEASE_ID=$(curl https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ steps.dispatch-event.outputs.TAG }} | jq .id || echo "")
PRE_RELEASE=$(curl -s https://api.github.com/repos/dappnode/${{ github.repository }}releases/tags/${{ steps.dispatch-event.outputs.TAG }} | jq .prerelease)
if [ $PRE_RELEASE == "false" ];then
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Docker-Compose Build
run: |
docker-compose build

- name: dappnodesdk publish
id: dappnodesdk-publish
run: |
Expand Down Expand Up @@ -70,54 +70,54 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build_${{ steps.next-release.outputs.DNP_VERSION }}/${{ steps.dappnodesdk-publish.outputs.PACKAGE_NAME }}_${{ steps.next-release.outputs.DNP_VERSION }}.tar.xz
asset_name: ${{ steps.dappnodesdk-publish.outputs.PACKAGE_NAME }}_${{ steps.next-release.outputs.DNP_VERSION }}.tar.xz
asset_content_type: 'application/octet-stream'
asset_content_type: "application/octet-stream"

- name: Upload release avatar file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build_${{ steps.next-release.outputs.DNP_VERSION }}/avatar.png
asset_name: avatar.png
asset_content_type: 'application/octet-stream'
asset_content_type: "application/octet-stream"

- name: Upload release dappnode_package.json file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build_${{ steps.next-release.outputs.DNP_VERSION }}/dappnode_package.json
asset_name: dappnode_package.json
asset_content_type: 'application/octet-stream'
asset_content_type: "application/octet-stream"

- name: Upload release docker-compose.yml file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build_${{ steps.next-release.outputs.DNP_VERSION }}/docker-compose.yml
asset_name: docker-compose.yml
asset_content_type: 'application/octet-stream'
asset_content_type: "application/octet-stream"

- name: Upload release content-hash file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build_${{ steps.next-release.outputs.DNP_VERSION }}/content-hash
asset_name: content-hash
asset_content_type: 'application/octet-stream'
asset_content_type: "application/octet-stream"

- name: Commit changes
run: |
git config --global user.email "eduadiez@gmail.com"
git config --global user.name "Eduardo"
git commit -am "Github action update"
git push
git config --global user.email "eduadiez@gmail.com"
git config --global user.name "Eduardo"
git commit -am "Github action update"
git push
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG VERSION
FROM ethereum/client-go:$VERSION as geth
ARG UPSTREAM_VERSION
FROM ethereum/client-go:${UPSTREAM_VERSION} as geth

# Pull Parity into a second stage deploy alpine container
FROM alpine:edge
Expand Down
2 changes: 1 addition & 1 deletion dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geth.dnp.dappnode.eth",
"version": "0.1.7",
"version": "0.1.9",
"upstreamVersion": "v1.9.15",
"shortDescription": "Geth is the official Go implementation of the Ethereum protocol.",
"description": "Ethereum is a global, open-source platform for decentralized applications where you can write code that controls digital value, runs exactly as programmed, and is accessible anywhere in the world.",
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: '3.4'
services:
geth.dnp.dappnode.eth:
image: 'geth.dnp.dappnode.eth:0.1.7'
image: 'geth.dnp.dappnode.eth:0.1.9'
build:
context: ./build
args:
- VERSION
- UPSTREAM_VERSION
volumes:
- 'geth:/root/.ethereum'
environment:
Expand Down
18 changes: 16 additions & 2 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,25 @@
"link": "http://my.dappnode/#/sdk/publish/r=geth.dnp.dappnode.eth&v=0.1.6&h=%2Fipfs%2FQmazbxJNXNn5kUe3PHRiMpJtvf91o6SUM4uFphj9znuVt3"
},
"0.1.7": {
"hash": "/ipfs/Qmd7jLvxVmUziFFVV9M6R4Svn7KGiM1VGg6kymbCknCgF1",
"hash": "/ipfs/QmTujfYrQwWG7kRwQX4nBD7TmSDjjSfRkj4CdZW3rmDJLC",
"type": "directory",
"uploadedTo": {
"remote": "Mon, 08 Jun 2020 17:12:10 GMT"
"dappnode": "Fri, 07 Aug 2020 12:53:48 GMT"
},
"link": "http://my.dappnode/#/sdk/publish/r=geth.dnp.dappnode.eth&v=0.1.7&h=%2Fipfs%2FQmd7jLvxVmUziFFVV9M6R4Svn7KGiM1VGg6kymbCknCgF1"
},
"0.1.8": {
"hash": "/ipfs/QmUf1uzqZdXyKt4YB96nr1F9GtxUWnPu8hSs7WXJnoc5Cj",
"uploadedTo": {
"remote": "Fri, 07 Aug 2020 12:54:45 GMT"
},
"link": "http://my.dappnode/#/sdk/publish/r=geth.dnp.dappnode.eth&v=0.1.8&h=%2Fipfs%2FQmUf1uzqZdXyKt4YB96nr1F9GtxUWnPu8hSs7WXJnoc5Cj"
},
"0.1.9": {
"hash": "/ipfs/QmbpQoSXzPcBwm1LUeVMPosgsVUf772pN32xjDyxWnPEHT",
"uploadedTo": {
"remote": "Fri, 07 Aug 2020 13:19:24 GMT"
},
"link": "http://my.dappnode/#/sdk/publish/r=geth.dnp.dappnode.eth&v=0.1.9&h=%2Fipfs%2FQmbpQoSXzPcBwm1LUeVMPosgsVUf772pN32xjDyxWnPEHT"
}
}