Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(SPV-1114): setup builds to publish images also on AWS ECR public repo. #747

Merged
merged 4 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
25 changes: 24 additions & 1 deletion .github/workflows/manual-build-dockers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ on:
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@main
with:
version: ${{ inputs.version || github.ref_name }}
Expand All @@ -23,3 +32,17 @@ jobs:
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@main
with:
version: ${{ inputs.version || github.ref_name }}
ref: ${{ github.ref }}
cgo_enabled: true
release_create: false
docker_registry: public.ecr.aws
docker_org: ${{ vars.SPV_AWS_DOCKER_ORG }}
secrets:
DOCKER_USERNAME: ${{ secrets.SPV_AWS_ACCESS_KEY_ID }}
DOCKER_PASSWORD: ${{ secrets.SPV_AWS_SECRET_ACCESS_KEY }}
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ jobs:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

release_aws:
uses: bactions/workflows/.github/workflows/release-go-server.yml@main
with:
version: ${{ github.ref_name }}
cgo_enabled: true
release_create: false # important! we don't want to create a release on with this one, because we're doing it in release_default
dorzepowski marked this conversation as resolved.
Show resolved Hide resolved
docker_registry: public.ecr.aws
docker_org: ${{ vars.SPV_AWS_DOCKER_ORG }}
secrets:
DOCKER_USERNAME: ${{ secrets.SPV_AWS_ACCESS_KEY_ID }}
DOCKER_PASSWORD: ${{ secrets.SPV_AWS_SECRET_ACCESS_KEY }}

release_libs:
runs-on: ubuntu-latest
needs: [release_default]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trigger-regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: >
(github.event_name == 'workflow_dispatch') ||
(github.event_name == 'pull_request_target' && github.event.label.name == 'regression-tests')
uses: bactions/workflows/.github/workflows/release-go-server.yml@feat/spv-1030-remove-goreleaser
uses: bactions/workflows/.github/workflows/release-go-server.yml@main
with:
ref: ${{ github.head_ref || github.ref }}
version: ${{ github.run_id }}-${{ github.run_attempt }}
Expand Down
Loading