41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: Create Manifest
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
python-version:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
DOCKER_USERNAME:
|
|
required: true
|
|
DOCKER_PASSWORD:
|
|
required: true
|
|
|
|
jobs:
|
|
create:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Login to Docker Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.technocloud.ee
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Set up Docker BuildX
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
driver: docker-container
|
|
|
|
- name: Get Repository Metadata
|
|
id: meta
|
|
run: |
|
|
echo "PACKAGE=gitea.technocloud.ee/${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create and Push Multi-arch Manifest
|
|
run: |
|
|
IMAGE_NAME=${{ steps.meta.outputs.PACKAGE }}:python${{ inputs.python-version }}
|
|
docker manifest create $IMAGE_NAME \
|
|
--amend ${{ steps.meta.outputs.PACKAGE }}@${ARM_DIGEST} \
|
|
--amend ${{ steps.meta.outputs.PACKAGE }}@${AMD_DIGEST}
|
|
docker manifest push $IMAGE_NAME |