Skip to content

Release Kpow (AWS builds only) #3

Release Kpow (AWS builds only)

Release Kpow (AWS builds only) #3

name: Release Kpow (AWS builds only)
on:
workflow_dispatch:
inputs:
version:
description: 'Version of Kpow'
required: true
manifest:
description: 'URL of Manifest'
required: true
release_number_bump:
description: 'I have updated system.clj release number!'
required: true
default: 'false'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check that we have bumped release number
run: |
./scripts/release_number_check.sh ${{github.event.inputs.release_number_bump}}
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Download and verify JAR(s)
run: |
./scripts/jar.sh "${{github.event.inputs.manifest}}"
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log into GitHub packages
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build Kpow AWS Marketplace LM (SE)
run: |
VERSION=${{github.event.inputs.version}}
IMAGE_ID=factorhouse/kpow-se
IMAGE_TAG=$VERSION-aws-mkt-lm
./scripts/build_amd64.sh $VERSION $IMAGE_ID $IMAGE_TAG dockerfile/aws-mkt-lm/Dockerfile
-
name: Build Kpow AWS Marketplace Corp (SE)
run: |
VERSION=${{github.event.inputs.version}}
IMAGE_ID=factorhouse/kpow-se
IMAGE_TAG=$VERSION-aws-mkt-corp
./scripts/build_amd64.sh $VERSION $IMAGE_ID $IMAGE_TAG dockerfile/aws-mkt-corp/Dockerfile
-
name: Build Kpow AWS Marketplace Pro (SE)
run: |
VERSION=${{github.event.inputs.version}}
IMAGE_ID=factorhouse/kpow-se
IMAGE_TAG=$VERSION-aws-mkt-pro
./scripts/build_amd64.sh $VERSION $IMAGE_ID $IMAGE_TAG dockerfile/aws-mkt-pro/Dockerfile
-
name: Build Kpow AWS Marketplace Team (SE)
run: |
VERSION=${{github.event.inputs.version}}
IMAGE_ID=factorhouse/kpow-se
IMAGE_TAG=$VERSION-aws-mkt-team
./scripts/build_amd64.sh $VERSION $IMAGE_ID $IMAGE_TAG dockerfile/aws-mkt-team/Dockerfile