diff --git a/.github/actions/build-and-deploy-quarkus-jvm/action.yaml b/.github/actions/build-and-deploy-quarkus-jvm/action.yaml deleted file mode 100644 index ac7a14d..0000000 --- a/.github/actions/build-and-deploy-quarkus-jvm/action.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Build and Deploy Quarkus JVM Image -description: Build and deploy Quarkus JVM image to DockerHub -inputs: - platforms: - description: Architectures for image, e.g. linux/amd64,linux/arm64/v8 - required: true - docker-username: - description: User name to log into registry - required: true - docker-password: - description: Password to log into registry - required: true - image-name: - description: Docker image name - required: true - image-tag: - description: Docker image tag - required: true -outputs: {} -runs: - using: "composite" - steps: - - name: Set up Java - uses: actions/setup-java@v3 - with: - distribution: "temurin" - java-version: "21" - - name: Build Quarkus JVM Image - shell: sh - run: | - ./gradlew clean assemble \ - -Dquarkus.container-image.build=true \ - -Dquarkus.container-image.push=true \ - -Dquarkus.jib.platforms=${{ inputs.platforms }} \ - -Dquarkus.container-image.name=${{ inputs.image-name }} \ - -Dquarkus.container-image.tag=${{ inputs.image-tag }} \ - -Dquarkus.container-image.username=${{ inputs.docker-username }} \ - -Dquarkus.container-image.password=${{ inputs.docker-password }} - diff --git a/.github/actions/build-and-deploy-quarkus-native/action.yaml b/.github/actions/build-and-deploy-quarkus-native/action.yaml deleted file mode 100644 index 876cbbe..0000000 --- a/.github/actions/build-and-deploy-quarkus-native/action.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Build and Deploy Quarkus Native Image -description: Build and deploy Quarkus native image to DockerHub -inputs: - platforms: - description: Architectures for image, e.g. linux/amd64,linux/arm64/v8 - required: true - docker-username: - description: User name to log into registry - required: true - docker-password: - description: Password to log into registry - required: true - image-name: - description: Docker image name - required: true - image-tag: - description: Docker image tag - required: true -outputs: {} -runs: - using: "composite" - steps: - - name: Set up graalvm - uses: actions/setup-java@v4 - with: - distribution: "graalvm" - java-version: "21" - - name: Build Quarkus Native Image - shell: sh - run: | - ./gradlew clean assemble \ - -Dquarkus.package.type=native \ - -Dquarkus.container-image.push=true \ - -Dquarkus.jib.platforms=${{ inputs.platforms }} \ - -Dquarkus.container-image.name=${{ inputs.image-name }} \ - -Dquarkus.container-image.tag=${{ inputs.image-tag }} \ - -Dquarkus.native.additional-build-args="--initialize-at-run-time=org.apache.kafka.common.security.authenticator.SaslClientAuthenticator\,org.apache.kafka.common.security.oauthbearer.internals.expiring.ExpiringCredentialRefreshingLogin" \ - -Dquarkus.container-image.username=${{ inputs.docker-username }} \ - -Dquarkus.container-image.password=${{ inputs.docker-password }} diff --git a/.github/actions/publish-multi-arch-manifest/action.yaml b/.github/actions/publish-multi-arch-manifest/action.yaml deleted file mode 100644 index 9528ae2..0000000 --- a/.github/actions/publish-multi-arch-manifest/action.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Publish Multi-Arch Manifest -description: Publish a multi-architecture Docker manifest -inputs: - image-name: - description: Docker image name - required: true - target-tag: - description: Target image tag - required: true -outputs: {} -runs: - using: 'composite' - steps: - - name: Install Manifest Tool - shell: sh - run: | - curl -L https://github.com/estesp/manifest-tool/releases/download/v1.0.3/manifest-tool-linux-amd64 -o /usr/local/bin/manifest-tool - chmod +x /usr/local/bin/manifest-tool - - name: Publish Multi-Arch Manifest - shell: sh - run: | - manifest-tool push from-args \ - --platforms linux/amd64,linux/arm64/v8 \ - --template ${{ secrets.DOCKERHUB_ORGANIZATION }}/${{ inputs.image-name }}:ARCH \ - --target ${{ secrets.DOCKERHUB_ORGANIZATION }}/${{ inputs.image-name }}:${{ inputs.target-tag }} diff --git a/.github/actions/retag-dockerhub-image/action.yaml b/.github/actions/retag-dockerhub-image/action.yaml deleted file mode 100644 index dc574de..0000000 --- a/.github/actions/retag-dockerhub-image/action.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Retag DockerHub Image -description: Retag a Docker image on DockerHub -inputs: - source-tag: - description: Source image tag - required: true - target-tag: - description: Target image tag - required: true - image-name: - description: Docker image name - required: true -outputs: {} -runs: - using: "composite" - steps: - - name: Install Crane - shell: sh - run: | - curl -sSL https://github.com/google/go-containerregistry/releases/download/v0.9.0/go-containerregistry_Linux_x86_64.tar.gz | tar xz -C /usr/local/bin crane - - name: Retag Image - shell: sh - run: | - crane auth login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} index.docker.io - crane cp ${{ inputs.image-name }}:${{ inputs.source-tag }} ${{ inputs.image-name }}:${{ inputs.target-tag }} diff --git a/.github/actions/setup-quarkus/action.yaml b/.github/actions/setup-quarkus/action.yaml deleted file mode 100644 index 876f927..0000000 --- a/.github/actions/setup-quarkus/action.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: install the quarkus-cli -description: installs java and quarkus via jbang -inputs: - image-name: - description: Docker image name - required: true - image-tag: - description: Docker image tag - required: true -outputs: {} -runs: - using: 'composite' - steps: - - name: Set up graalvm - uses: actions/setup-java@v4 - with: - distribution: 'graalvm' - java-version: '21' - - - name: install quarkus-cli tool - shell: sh - run: | - curl -Ls https://sh.jbang.dev | bash -s - trust add https://repo1.maven.org/maven2/io/quarkus/quarkus-cli/ - curl -Ls https://sh.jbang.dev | bash -s - app install --fresh --force quarkus@quarkusio - - echo "$HOME/.jbang/bin:$PATH" >> $GITHUB_PATH - - run: quarkus extension add container-image-docker - shell: sh - - run: quarkus extension add container-image-jib - shell: sh \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3615745..3227fba 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -148,7 +148,7 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 - name: Build and Push Image - uses: ./.github/actions/build-and-deploy-quarkus-native + uses: explorviz/deployment/.github/actions/build-and-deploy-quarkus-native@main with: platforms: "linux/amd64,linux/arm64/v8" docker-username: ${{ secrets.DOCKER_USERNAME }} @@ -165,7 +165,7 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 - name: Build and Push Image - uses: ./.github/actions/build-and-deploy-quarkus-jvm + uses: explorviz/deployment/.github/actions/build-and-deploy-quarkus-jvm@main with: platforms: "linux/amd64,linux/arm64/v8" docker-username: ${{ secrets.DOCKER_USERNAME }}