From 1ac9a4a7e443a7a4190281e60f276d0da46adad0 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 9 Oct 2021 16:48:27 +0800 Subject: [PATCH] Update build os --- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yaml | 5 +++-- Dockerfile | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c5e0b0a..b89886b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -11,7 +11,7 @@ on: jobs: unit-tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 with: @@ -26,7 +26,7 @@ jobs: run: cargo test --all formatting: - runs-on: ubuntu-20.04 + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ed4e9b2..8feb628 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,7 @@ on: jobs: github-releases: - runs-on: ubuntu-20.04 + runs-on: ubuntu-18.04 outputs: tag: ${{ steps.check_rc.outputs.tag }} rc: ${{ steps.check_rc.outputs.rc }} @@ -47,7 +47,7 @@ jobs: target/release/wbuild/deer-runtime/deer_runtime.compact.wasm docker-hub: - runs-on: ubuntu-20.04 + runs-on: ubuntu-18.04 needs: ["github-releases"] if: needs.github-releases.outputs.rc == 'false' steps: @@ -57,6 +57,7 @@ jobs: with: name: deer-node path: ${{ github.workspace }}/target/release/ + - run: chmod +x ${{ github.workspace }}/target/release/deer-node - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx diff --git a/Dockerfile b/Dockerfile index 2f40610..2fed373 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,8 @@ RUN apt-get update && \ # add node to docker image COPY ./target/release/deer-node /usr/local/bin/deer-node +RUN /usr/local/bin/deer-node --version + EXPOSE 30333 9933 9944 ENTRYPOINT ["/usr/local/bin/deer-node"] \ No newline at end of file