fix: treat UNDEFINED as bool when used with bool #184
This file contains hidden or 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: Docker publish dev | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "develop" | |
| pull_request: | |
| jobs: | |
| docker-publish: | |
| name: Publish docker | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 🐳 Prepare Docker | |
| id: prep | |
| env: | |
| REPO_NAME: ghcr.io/${{ github.repository }} | |
| run: | | |
| REPO_NAME=$(echo $REPO_NAME | tr '[:upper:]' '[:lower:]') | |
| TAG="0.3.3-dev" | |
| # Docker | |
| echo "docker_image_name=${REPO_NAME}" >> $GITHUB_OUTPUT | |
| echo "docker_image_tag=${TAG}" >> $GITHUB_OUTPUT | |
| echo "docker_image=${REPO_NAME}:${TAG}" >> $GITHUB_OUTPUT | |
| - name: Login to GitHub Container Registry | |
| if: github.event_name != 'pull_request' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: 🐳 Set up Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: 🐳 Cache Docker layers | |
| uses: actions/cache@v4 | |
| with: | |
| path: /tmp/.buildx-cache | |
| key: ${{ runner.os }}-buildx-${{ github.ref }} | |
| restore-keys: | | |
| ${{ runner.os }}-buildx-refs/develop | |
| ${{ runner.os }}-buildx- | |
| - name: 🐳 Build image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| builder: ${{ steps.buildx.outputs.name }} | |
| target: emulator | |
| file: Dockerfile | |
| push: false | |
| load: true | |
| provenance: false # XXX: Without this we have untagged images in ghcr.io | |
| tags: ${{ steps.prep.outputs.docker_image }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: 🐳 Docker push | |
| if: github.event_name != 'pull_request' | |
| env: | |
| DOCKER_IMAGE: ${{ steps.prep.outputs.docker_image }} | |
| run: docker push $DOCKER_IMAGE |