mirror of
https://github.com/docker/bake-action.git
synced 2026-10-14 11:20:27 +02:00
Add subaction/matrix to update-dist and dev.Dockerfile
Signed-off-by: Julian Liebig <julian.liebig@tudock.de>
This commit is contained in:
@@ -44,12 +44,12 @@ jobs:
|
||||
-
|
||||
name: Commit and push dist
|
||||
run: |
|
||||
if [ -n "$(git status --porcelain -- dist)" ]; then
|
||||
if [ -n "$(git status --porcelain -- dist subaction/matrix/dist)" ]; then
|
||||
(
|
||||
set -x
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git add dist
|
||||
git add dist subaction/matrix/dist
|
||||
git commit -m "[dependabot skip] chore: update generated content"
|
||||
git push
|
||||
)
|
||||
|
||||
+6
-4
@@ -40,10 +40,12 @@ RUN --mount=target=/context \
|
||||
--mount=type=cache,target=/src/node_modules <<EOT
|
||||
set -e
|
||||
rsync -a /context/. .
|
||||
rm -rf dist
|
||||
yarn run build
|
||||
rm -rf dist subaction/matrix/dist
|
||||
yarn workspaces foreach --all run build
|
||||
mkdir /out
|
||||
cp -r dist /out
|
||||
mkdir -p /out/subaction/matrix
|
||||
cp -r subaction/matrix/dist /out/subaction/matrix
|
||||
EOT
|
||||
|
||||
FROM scratch AS build-update
|
||||
@@ -55,9 +57,9 @@ RUN --mount=target=/context \
|
||||
set -e
|
||||
rsync -a /context/. .
|
||||
git add -A
|
||||
rm -rf dist
|
||||
rm -rf dist subaction/matrix/dist
|
||||
cp -rf /out/* .
|
||||
if [ -n "$(git status --porcelain -- dist)" ]; then
|
||||
if [ -n "$(git status --porcelain -- dist subaction/matrix/dist)" ]; then
|
||||
echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'
|
||||
git status --porcelain -- dist
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user