Skip to content

fix: restore compatibility with openshell 0.0.85 and OCP deploy (#86) #294

fix: restore compatibility with openshell 0.0.85 and OCP deploy (#86)

fix: restore compatibility with openshell 0.0.85 and OCP deploy (#86) #294

Workflow file for this run

name: Images
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
permissions:
contents: read
packages: write
env:
REGISTRY: quay.io
IMAGE_BASE: quay.io/rcochran/openshell
jobs:
sandbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_QUAY_USER }}
password: ${{ secrets.REGISTRY_QUAY_PASSWORD }}
- name: Compute version tag
id: version
run: echo "version=$(git describe --tags --always 2>/dev/null || echo dev)" >> "$GITHUB_OUTPUT"
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.IMAGE_BASE }}
tags: |
type=semver,pattern=sandbox-v{{version}}
type=raw,value=sandbox-${{ steps.version.outputs.version }},enable=${{ github.ref_type != 'tag' }}
- uses: docker/build-push-action@v6
with:
context: profiles/images/sandbox-default
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE_BASE }}:sandbox-cache
cache-to: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && format('type=registry,ref={0}:sandbox-cache,mode=max', env.IMAGE_BASE) || '' }}