Skip to content

Handle case where no shell is explicitly defined #94

Handle case where no shell is explicitly defined

Handle case where no shell is explicitly defined #94

Workflow file for this run

on:
workflow_call:
workflow_dispatch:
pull_request:
branches: [ main, dev ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
init:
uses: ./.github/workflows/init.yml
docker:
name: Build Docker Image
runs-on: ubuntu-latest
needs: [ init ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
- name: Build and push
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6
with:
context: ./src
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: >
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.init.outputs.product-version }},
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.init.outputs.product-version-major }},
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
build-args: |
PACKAGE_VERSION=${{ needs.init.outputs.product-version }}