Skip to content

fix: update timber.yml #2

fix: update timber.yml

fix: update timber.yml #2

Workflow file for this run

name: Timber Development Workflow
on:
push:
branches:
- wenxing/updateImages
jobs:
SetupEnvironment:
name: DEV::PR::Initialize the temporary PR environment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node environment
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
env:
GPR_TOKEN: ${{ secrets.GPR_TOKEN }}
- name: Restore Node modules from cache
id: cache-saas-transactional-ocm-zapps-node-modules
uses: actions/cache@v3
env:
cache-name: cache-saas-transactional-ocm-zapps-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
BuildDockerImage:
name: DEV::PR::Build and publish timber docker image
needs: [SetupEnvironment]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node environment
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
env:
GPR_TOKEN: ${{ secrets.GPR_TOKEN }}
- name: Restore Node modules from cache
id: cache-saas-transactional-ocm-zapps-node-modules
uses: actions/cache@v3
env:
cache-name: cache-saas-transactional-ocm-zapps-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
# - name: Set up Contract-Interfaces
# run: |
# CONTRACT_INTERFACES_DIR="./contract-interfaces"
# mkdir -p $CONTRACT_INTERFACES_DIR
# for contract in $(ls ./zapps/*/contracts/build/*Shield.json); do
# ln -f $contract ./contract-interfaces
# done
- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push timber image
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile.timber
build-args: |
GPR_TOKEN=${{ secrets.GPR_TOKEN }}
tags: |
ghcr.io/eyblockchain/multiple-contracts-wwx:with-health-check
push: true