Skip to content

Deploy RC to DockerHub #17

Deploy RC to DockerHub

Deploy RC to DockerHub #17

Workflow file for this run

name: Deploy RC to DockerHub
on:
workflow_dispatch:
inputs:
version:
description: 'Version of Kpow'
required: true
manifest:
description: 'URL of Manifest'
required: true
jobs:
DeployRC:
runs-on: ubuntu-latest
name: Tag and update releases.edn
steps:
- uses: actions/checkout@v3
- name: Verify RC version input
run: |
./scripts/rc_release_check.sh ${{github.event.inputs.version}}
- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: us-east-1
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Download and verify JAR(s)
run: |
./scripts/jar.sh "${{github.event.inputs.manifest}}"
- name: Release Kpow JDK11 JAR
run: |
VERSION=${{github.event.inputs.version}}
VERSION="${VERSION//./-}"
aws s3 cp target/kpow-java11-standalone.jar s3://${{ secrets.RELEASES_BUCKET }}/kpow-$VERSION-java11.jar
- name: Release Kpow JDK8 JAR
run: |
VERSION=${{github.event.inputs.version}}
VERSION="${VERSION//./-}"
aws s3 cp target/kpow-java8-standalone.jar s3://${{ secrets.RELEASES_BUCKET }}/kpow-$VERSION-java8.jar
-
# 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 (EE)
run: |
VERSION=${{github.event.inputs.version}}
IMAGE_ID=factorhouse/kpow-ee
IMAGE_TAG=$VERSION
./scripts/build_all.sh $VERSION $IMAGE_ID $IMAGE_TAG dockerfile/kpow/Dockerfile