Skip to content

Commit

Permalink
Debug caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ADobrodey committed Jul 19, 2023
1 parent 0d327bd commit e52e731
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 76 deletions.
80 changes: 6 additions & 74 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,90 +54,22 @@ jobs:
context: .
file: ./Dockerfile-new
push: true
# build-args: |
# "AWS_ACCESS_KEY_ID=${{ secrets.DEV_NETWORK_AWS_ACCESS_KEY_ID }}"
# "AWS_SECRET_ACCESS_KEY=${{ secrets.DEV_NETWORK_AWS_SECRET_ACCESS_KEY }}"
# "SCCACHE_REGION=us-west-2"
# "SCCACHE_BUCKET=cere-blockchain-sccache"
build-args: |
"AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID"
"AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY"
"AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN"
"SCCACHE_REGION=${AWS_REGION}"
"SCCACHE_REGION=us-west-2"
"SCCACHE_BUCKET=cere-blockchain-sccache"
tags: |
${{ steps.login-ecr.outputs.registry }}/pos-network-node:${{ github.sha }}
${{ steps.login-ecr.outputs.registry }}/pos-network-node:dev-latest
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly-2022-10-09
# profile: minimal
# override: true
# components: rustfmt, clippy
#
# - name: Run sccache-cache
# uses: mozilla-actions/[email protected]
#
# - name: Cache cargo registry
# uses: actions/cache@v3
# continue-on-error: false
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-cargo-
#
# - name: Save sccache
# uses: actions/cache@v2
# continue-on-error: false
# with:
# path: ${{ env.SCCACHE_DIR }}
# key: ${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-sccache-
#
# - name: Lint
# run: cargo fmt --all -- --check
#
# - name: Install Protoc
# uses: arduino/setup-protoc@v1
# with:
# version: "3.15.8"
#
# - name: Start sccache server
# run: sccache --start-server
#
# - name: Build
# run: cargo build --release
#
# - name: Stop sccache server
# run: sccache --stop-server || true
#
# - name: configure aws credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: arn:aws:iam::${{ vars.DEV_NETWORK_AWS_ACCOUNT_ID }}:role/github
# role-session-name: ${{ github.event.repository.name }}
# aws-region: us-west-2
#
# - name: Get short SHA
# run: |
# echo GITHUB_SHA=${GITHUB_SHA:0:7} >> $GITHUB_ENV
#
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Login to Amazon ECR
# id: login-ecr
# uses: aws-actions/amazon-ecr-login@v1
# - name: Build and push docker image to ECR
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./Dockerfile-new
# push: true
# tags: |
# ${{ steps.login-ecr.outputs.registry }}/pos-network-node:${{ github.sha }}
# ${{ steps.login-ecr.outputs.registry }}/pos-network-node:dev-latest
#
# - name: Upload cere-runtime wasm artifact
# uses: actions/upload-artifact@v3
# with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-new
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ARG PROFILE=release
WORKDIR /cerenetwork
COPY . /cerenetwork

RUN apt-get update && \
apt-get install -y \
RUN apt-get -qq update && \
apt-get -qq install -y \
clang \
cmake \
git \
Expand Down

0 comments on commit e52e731

Please sign in to comment.