Test 29
This commit is contained in:
41
.gitea/workflows/create-manifest.yml
Normal file
41
.gitea/workflows/create-manifest.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
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
|
||||
Reference in New Issue
Block a user