Build docker image version ci-aws-ecr-support from ref ci-aws-ecr-support #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[Manual] Build Docker Images" | |
run-name: "Build docker image version ${{ inputs.version || github.ref_name }} from ref ${{ github.ref_name }}" | |
permissions: | |
contents: write | |
packages: write | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version name to build, if not specified, then the name of the branch will be used' | |
required: false | |
registries: | |
description: 'Docker registries to use' | |
required: true | |
default: 'dockerhub,aws' | |
type: choice | |
options: | |
- 'dockerhub' | |
- 'aws' | |
- 'dockerhub,aws' | |
jobs: | |
release_default: | |
if: contains('${{ inputs.registries }}', 'dockerhub') | |
uses: bactions/workflows/.github/workflows/release-go-server.yml@aws-support | |
with: | |
version: ${{ inputs.version || github.ref_name }} | |
ref: ${{ github.ref }} | |
cgo_enabled: true | |
release_create: false | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
release_aws: | |
if: contains('${{ inputs.registries }}', 'aws') | |
uses: bactions/workflows/.github/workflows/release-go-server.yml@aws-support | |
with: | |
version: ${{ inputs.version || github.ref_name }} | |
ref: ${{ github.ref }} | |
cgo_enabled: true | |
release_create: false | |
docker_registry: public.ecr.aws | |
# TODO: use secret or variable for that | |
docker_org: k9t8b9f1 | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.SPV_AWS_ACCESS_KEY_ID }} | |
DOCKER_PASSWORD: ${{ secrets.SPV_AWS_SECRET_ACCESS_KEY }} |