Skip to content

housekeeping: Refactors SettingsButton into a link (#5877) #3869

housekeeping: Refactors SettingsButton into a link (#5877)

housekeeping: Refactors SettingsButton into a link (#5877) #3869

Workflow file for this run

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@v4
# 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@v3
- name: Provide empty global config
run: echo '{}' > global-config.json
- name: Build docker artifacts
uses: docker/build-push-action@v6
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