Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.
Python awsaws-emulatoraws-localaws-sdkdevtoolsdockerdynamodbec2emulatorlambdalocalstacklocalstack-alternativeministackmock-awsopen-sourcepythons3sqsterraform
release v1.3.61
Nahuel990afe62ab2bc9b
diff --git a/.github/workflows/docker-publish-on-pr.yml b/.github/workflows/docker-publish-on-pr.ymlindex 04e06a71..bc10f37d 100644--- a/.github/workflows/docker-publish-on-pr.yml+++ b/.github/workflows/docker-publish-on-pr.yml@@ -8,22 +8,22 @@ env:DOCKERHUB_IMAGE_ORG: ministackorg/ministack-preview-buildjobs:- # Path-based guard. pull_request_target runs with repo secrets- # (DOCKERHUB_TOKEN) and builds the PR's code, so any PR that touches the- # build/CI surface (Dockerfile*, .dockerignore, anything under .github/)- # must NOT be auto-built — a maintainer reviews and builds it manually.- # The changed-file list is read through the API only; this job never checks- # out PR-controlled code.- guard:+ publish-pr:runs-on: ubuntu-latest+permissions:contents: readpull-requests: write- outputs:- skip: ${{ steps.paths.outputs.skip }}+steps:+ # Path-based guard. pull_request_target runs with repo secrets+ # (DOCKERHUB_TOKEN) and builds the PR's code, so any PR that touches the+ # build/CI surface (Dockerfile*, .dockerignore, anything under .github/)+ # must NOT be auto-built — a maintainer reviews and builds it manually.+ # The changed-file list is read through the API only, and this runs+ # before checkout, so no PR-controlled code executes when it skips.- name: Detect changes to the build/CI surface- id: paths+ id: guardenv:GH_TOKEN: ${{ github.token }}run: |@@ -36,8 +36,9 @@ jobs:elseecho "skip=false" >> "$GITHUB_OUTPUT"fi+- name: Comment that auto-preview was skipped- if: steps.paths.outputs.skip == 'true'+ if: steps.guard.outputs.skip == 'true'uses: peter-evans/create-or-update-comment@v4with:token: ${{ secrets.GITHUB_TOKEN }}@@ -47,33 +48,28 @@ jobs:(`Dockerfile`, `.dockerignore`, or files under `.github/`). A maintainerwill review and build the preview image manually before it is published.- publish-pr:- needs: guard- if: needs.guard.outputs.skip != 'true'- runs-on: ubuntu-latest-- permissions:- contents: read- pull-requests: write-- steps:- uses: actions/checkout@v6+ if: steps.guard.outputs.skip != 'true'with:ref: ${{ github.event.pull_request.head.sha }}- name: Get short SHAid: short_sha+ if: steps.guard.outputs.skip != 'true'run: |short_sha=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-8)echo "short_sha=$short_sha" >> "$GITHUB_OUTPUT"- name: Set up QEMU (multi-arch)+ if: steps.guard.outputs.skip != 'true'uses: docker/setup-qemu-action@v4- name: Set up Docker Buildx+ if: steps.guard.outputs.skip != 'true'uses: docker/setup-buildx-action@v4- name: Log in to Docker Hub+ if: steps.guard.outputs.skip != 'true'uses: docker/login-action@v4with:username: ${{ secrets.DOCKERHUB_USERNAME }}@@ -82,6 +78,7 @@ jobs:# ── Regular (Alpine) image ──- name: Extract metadata (regular)id: meta+ if: steps.guard.outputs.skip != 'true'uses: docker/metadata-action@v6with:images: |@@ -90,6 +87,7 @@ jobs:type=ref,event=pr,suffix=-${{ steps.short_sha.outputs.short_sha }}- name: Build and push (regular)+ if: steps.guard.outputs.skip != 'true'uses: docker/build-push-action@v7with:context: .@@ -109,7 +107,7 @@ jobs:# variant or needs DuckDB/Postgres/MySQL paths verified end-to-end.- name: Extract metadata (full)id: meta_full- if: contains(github.event.pull_request.labels.*.name, 'full-preview')+ if: steps.guard.outputs.skip != 'true' && contains(github.event.pull_request.labels.*.name, 'full-preview')uses: docker/metadata-action@v6with:images: |@@ -120,7 +118,7 @@ jobs:type=ref,event=pr,suffix=-${{ steps.short_sha.outputs.short_sha }}-full- name: Build and push (full)- if: contains(github.event.pull_request.labels.*.name, 'full-preview')+ if: steps.guard.outputs.skip != 'true' && contains(github.event.pull_request.labels.*.name, 'full-preview')uses: docker/build-push-action@v7with:context: .@@ -135,6 +133,7 @@ jobs:cache-to: type=gha,mode=max,scope=full-pr- name: Comment on PR with Docker image info+ if: steps.guard.outputs.skip != 'true'uses: peter-evans/create-or-update-comment@v4with:token: ${{ secrets.GITHUB_TOKEN }}