Skip to content

Commit defca28

Browse files
committed
Add ability to rebuild devcontainer image manually
I need it now to fetch new dotfiles
1 parent af656d8 commit defca28

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release-image.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: release-image
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
no_cache:
7+
description: Build without cache (pull latest base image and dotfiles)
8+
required: false
9+
type: boolean
10+
default: false
411
push:
512
branches:
613
- main
@@ -50,6 +57,8 @@ jobs:
5057
context: ./image
5158
platforms: ${{ matrix.platform }}
5259
labels: ${{ steps.meta.outputs.labels }}
60+
no-cache: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.no_cache == 'true' }}
61+
pull: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.no_cache == 'true' }}
5362
outputs: type=image,name=ghcr.io/${{ github.repository_owner }}/devcontainer,push-by-digest=true,name-canonical=true,push=true
5463
cache-from: type=gha,scope=${{ matrix.platform }}
5564
cache-to: type=gha,mode=max,scope=${{ matrix.platform }}

0 commit comments

Comments
 (0)