fix: update timber.yml #2
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
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 |