Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/image-transfer-dev2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Transfer images to mosipdev2

# Stage-scoped transfer: destination is fixed to mosipdev2.
# Requires GitHub Environment "transfer-dev2" with required reviewers
# and Environment secret MOSIPDEV2_DOCKER_TOKEN.
# See: release/docs/github-environments-image-transfer.md

on:
workflow_dispatch:
inputs:
USERNAME:
description: 'Registry username (Docker Hub user or Harbor robot)'
required: true
default: ''
type: string
REGISTRY_URL:
description: 'Destination registry URL'
required: true
default: 'https://index.docker.io/v1/'
type: string
REGISTRY_TYPE:
description: 'Destination registry type'
required: true
default: 'dockerhub'
type: choice
options:
- dockerhub
- harbor
- other
ENABLE_WIREGUARD:
description: 'Enable WireGuard VPN (required for private Harbor networks)'
required: false
default: false
type: boolean

jobs:
Image-transfer:
environment: transfer-dev2
uses: mosip/kattu/.github/workflows/image-transfer.yml@master
with:
DESTINATION_ORGANIZATION: mosipdev2
REGISTRY_URL: ${{ inputs.REGISTRY_URL }}
REGISTRY_TYPE: ${{ inputs.REGISTRY_TYPE }}
ENABLE_WIREGUARD: ${{ inputs.ENABLE_WIREGUARD }}
USERNAME: ${{ inputs.USERNAME }}
secrets:
TOKEN: ${{ secrets.MOSIPDEV2_DOCKER_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_DEVOPS }}
WIREGUARD_CONFIG: ${{ secrets.WIREGUARD_CONFIG }}
Comment on lines +38 to +49
49 changes: 49 additions & 0 deletions .github/workflows/image-transfer-qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Transfer images to mosipqa

# Stage-scoped transfer: destination is fixed to mosipqa.
# Requires GitHub Environment "transfer-qa" with required reviewers
# and Environment secret MOSIPQA_DOCKER_TOKEN.
# See: release/docs/github-environments-image-transfer.md

on:
workflow_dispatch:
inputs:
USERNAME:
description: 'Registry username (Docker Hub user or Harbor robot)'
required: true
default: ''
type: string
REGISTRY_URL:
description: 'Destination registry URL'
required: true
default: 'https://index.docker.io/v1/'
type: string
REGISTRY_TYPE:
description: 'Destination registry type'
required: true
default: 'dockerhub'
type: choice
options:
- dockerhub
- harbor
- other
ENABLE_WIREGUARD:
description: 'Enable WireGuard VPN (required for private Harbor networks)'
required: false
default: false
type: boolean

jobs:
Image-transfer:
environment: transfer-qa
uses: mosip/kattu/.github/workflows/image-transfer.yml@master
with:
DESTINATION_ORGANIZATION: mosipqa
REGISTRY_URL: ${{ inputs.REGISTRY_URL }}
REGISTRY_TYPE: ${{ inputs.REGISTRY_TYPE }}
ENABLE_WIREGUARD: ${{ inputs.ENABLE_WIREGUARD }}
USERNAME: ${{ inputs.USERNAME }}
secrets:
TOKEN: ${{ secrets.MOSIPQA_DOCKER_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_DEVOPS }}
WIREGUARD_CONFIG: ${{ secrets.WIREGUARD_CONFIG }}
Comment on lines +38 to +49
Loading