Chore: Remove dependency on neuron context (#3326) #1677
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: Populate docker cache | |
on: | |
push: | |
branches: | |
- main | |
# Use this branch for tests: | |
- docker-main-test | |
workflow_dispatch: | |
inputs: | |
network: | |
description: 'Network' | |
default: 'local' | |
type: string | |
no_cache: | |
description: 'no-cache' | |
required: true | |
default: false | |
type: boolean | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
builder: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
# We use `buildx` and its GitHub Actions caching support `type=gha`. For | |
# more information, see | |
# https://github.com/docker/build-push-action/issues/539 | |
- name: Set up docker buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build docker artifacts | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: Dockerfile | |
build-args: | | |
DFX_NETWORK=${{ inputs.network || 'local' }} | |
COMMIT=${{ github.sha }} | |
no-cache: ${{ inputs.no_cache || false }} | |
cache-from: type=gha,scope=cached-stage | |
cache-to: type=gha,scope=cached-stage,mode=max | |
outputs: type=cacheonly | |
target: scratch |