T-3: switch from Buildah to Docker for image build
The act_runner does not have Buildah installed. Docker is available via socket forwarding, so use docker build/tag/push instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -74,19 +74,16 @@ jobs:
|
|||||||
REGISTRY="${REGISTRY#http://}"
|
REGISTRY="${REGISTRY#http://}"
|
||||||
REPO="${{ github.repository }}"
|
REPO="${{ github.repository }}"
|
||||||
IMAGE="${REGISTRY}/${REPO}"
|
IMAGE="${REGISTRY}/${REPO}"
|
||||||
buildah bud -t "${IMAGE}:${{ steps.semver.outputs.full }}" .
|
docker build -t "${IMAGE}:${{ steps.semver.outputs.full }}" .
|
||||||
buildah tag "${IMAGE}:${{ steps.semver.outputs.full }}" \
|
docker tag "${IMAGE}:${{ steps.semver.outputs.full }}" "${IMAGE}:${{ steps.semver.outputs.minor }}"
|
||||||
"${IMAGE}:${{ steps.semver.outputs.minor }}" \
|
docker tag "${IMAGE}:${{ steps.semver.outputs.full }}" "${IMAGE}:${{ steps.semver.outputs.major }}"
|
||||||
"${IMAGE}:${{ steps.semver.outputs.major }}" \
|
docker tag "${IMAGE}:${{ steps.semver.outputs.full }}" "${IMAGE}:latest"
|
||||||
"${IMAGE}:latest"
|
|
||||||
echo "IMAGE=${IMAGE}" >> "$GITHUB_ENV"
|
echo "IMAGE=${IMAGE}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Push to registry
|
- name: Push to registry
|
||||||
run: |
|
run: |
|
||||||
buildah login -u "${{ github.repository_owner }}" \
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login -u "${{ github.repository_owner }}" --password-stdin "${IMAGE%%/*}"
|
||||||
-p "${{ secrets.REGISTRY_TOKEN }}" \
|
docker push "${IMAGE}:${{ steps.semver.outputs.full }}"
|
||||||
"${IMAGE%%/*}"
|
docker push "${IMAGE}:${{ steps.semver.outputs.minor }}"
|
||||||
buildah push "${IMAGE}:${{ steps.semver.outputs.full }}"
|
docker push "${IMAGE}:${{ steps.semver.outputs.major }}"
|
||||||
buildah push "${IMAGE}:${{ steps.semver.outputs.minor }}"
|
docker push "${IMAGE}:latest"
|
||||||
buildah push "${IMAGE}:${{ steps.semver.outputs.major }}"
|
|
||||||
buildah push "${IMAGE}:latest"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user