Fix release process #103
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: Docker Release | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build-dse-68-ubuntu: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
dse-version: [6.8.25, 6.8.26, 6.8.28, 6.8.29, 6.8.30, 6.8.31, 6.8.32, 6.8.33, 6.8.34, 6.8.35, 6.8.36, 6.8.37, 6.8.38, 6.8.39, 6.8.40, 6.8.41, 6.8.42, 6.8.43, 6.8.44, 6.8.46, 6.8.47, 6.8.48, 6.8.49, 6.8.50] | |
image-base: [jdk8, jdk11] | |
include: | |
- dse-version: 6.8.50 | |
latest: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Maven Settings File | |
run: | | |
mkdir -p ~/.m2 | |
cat <<EOF > ~/.m2/settings.xml | |
<settings> | |
<servers> | |
<server> | |
<id>artifactory-snapshots</id> | |
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username> | |
<password>${{ secrets.ARTIFACTORY_PASSWORD }}</password> | |
</server> | |
<server> | |
<id>artifactory-releases</id> | |
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username> | |
<password>${{ secrets.ARTIFACTORY_PASSWORD }}</password> | |
</server> | |
</servers> | |
</settings> | |
EOF | |
cp ~/.m2/settings.xml settings.xml | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- if: ${{ matrix.latest && matrix.image-base == 'jdk8' }} | |
name: Publish ${{ matrix.dse-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:6.8 \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-$RELEASE_VERSION \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.8.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
- if: ${{ matrix.latest && matrix.image-base != 'jdk8' }} | |
name: Publish ${{ matrix.dse-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:6.8-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.8.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
- if: ${{ !matrix.latest && matrix.image-base == 'jdk8' }} | |
name: Publish ${{ matrix.dse-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-$RELEASE_VERSION \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.8.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
- if: ${{ !matrix.latest && matrix.image-base != 'jdk8' }} | |
name: Publish ${{ matrix.cassandra-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.8.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
build-dse-68-ubi8: | |
needs: build-dse-68-ubuntu | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
dse-version: [6.8.25, 6.8.26, 6.8.28, 6.8.29, 6.8.30, 6.8.31, 6.8.32, 6.8.33, 6.8.34, 6.8.35, 6.8.36, 6.8.37, 6.8.38, 6.8.39, 6.8.40, 6.8.41, 6.8.42, 6.8.43, 6.8.44, 6.8.46, 6.8.47, 6.8.48, 6.8.49, 6.8.50] | |
image-base: [ubi8] | |
include: | |
- dse-version: 6.8.50 | |
latest: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Maven Settings File | |
run: | | |
mkdir -p ~/.m2 | |
cat <<EOF > ~/.m2/settings.xml | |
<settings> | |
<servers> | |
<server> | |
<id>artifactory-snapshots</id> | |
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username> | |
<password>${{ secrets.ARTIFACTORY_PASSWORD }}</password> | |
</server> | |
<server> | |
<id>artifactory-releases</id> | |
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username> | |
<password>${{ secrets.ARTIFACTORY_PASSWORD }}</password> | |
</server> | |
</servers> | |
</settings> | |
EOF | |
cp ~/.m2/settings.xml settings.xml | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.dse-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:6.8-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.8.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.8.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
build-oss-3-11x: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
cassandra-version: [3.11.7, 3.11.8, 3.11.11, 3.11.12, 3.11.13, 3.11.14, 3.11.15, 3.11.16, 3.11.17] | |
include: | |
- cassandra-version: 3.11.16 | |
latest: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:3.11 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-3.11 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-3.11 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }}-ubi8 to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:3.11-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-3.11.ubi8 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }}-ubi8 to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-3.11.ubi8 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
build-oss-4-0x: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
cassandra-version: [4.0.0, 4.0.1, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.0.10, 4.0.11, 4.0.12, 4.0.13] | |
include: | |
- cassandra-version: 4.0.13 | |
latest: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:4.0 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-4.0 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-4.0 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }}-ubi8 to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:4.0-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-4.0.ubi8 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }}-ubi8 to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-4.0.ubi8 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
build-oss-4-1x: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
cassandra-version: [4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5] | |
include: | |
- cassandra-version: 4.1.5 | |
latest: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:4.1 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-4.1 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-4.1 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }}-ubi8 to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:4.1-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-4.1.ubi8 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }}-ubi8 to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-4.1.ubi8 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
build-oss-5-0x: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
cassandra-version: [5.0-alpha1, 5.0-alpha2, 5.0-beta1] | |
include: | |
- cassandra-version: 5.0-beta1 | |
latest: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }}-ubi8 to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:5.0-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-5.0.ubi8 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }}-ubi8 to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg CASSANDRA_VERSION=${{ matrix.cassandra-version }} \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8 \ | |
--tag k8ssandra/cass-management-api:${{ matrix.cassandra-version }}-ubi8-$RELEASE_VERSION \ | |
--file cassandra/Dockerfile-5.0.ubi8 \ | |
--target cassandra \ | |
--platform linux/amd64,linux/arm64 . | |
build-dse-69-ubuntu: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
dse-version: [6.9.0-rc.1, 6.9.0-rc.3] | |
image-base: [jdk11] | |
include: | |
- dse-version: 6.9.0-rc.3 | |
latest: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Maven Settings File | |
run: | | |
mkdir -p ~/.m2 | |
cat <<EOF > ~/.m2/settings.xml | |
<settings> | |
<servers> | |
<server> | |
<id>artifactory-snapshots</id> | |
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username> | |
<password>${{ secrets.ARTIFACTORY_PASSWORD }}</password> | |
</server> | |
<server> | |
<id>artifactory-releases</id> | |
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username> | |
<password>${{ secrets.ARTIFACTORY_PASSWORD }}</password> | |
</server> | |
</servers> | |
</settings> | |
EOF | |
cp ~/.m2/settings.xml settings.xml | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.dse-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:6.9 \ | |
--tag datastax/dse-mgmtapi-6_8:6.9-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.9.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.9.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
build-dse-69-ubi8: | |
needs: build-dse-69-ubuntu | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
dse-version: [6.9.0-rc.1, 6.9.0-rc.3] | |
image-base: [ubi8] | |
include: | |
- dse-version: 6.9.0-rc.3 | |
latest: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Maven Settings File | |
run: | | |
mkdir -p ~/.m2 | |
cat <<EOF > ~/.m2/settings.xml | |
<settings> | |
<servers> | |
<server> | |
<id>artifactory-snapshots</id> | |
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username> | |
<password>${{ secrets.ARTIFACTORY_PASSWORD }}</password> | |
</server> | |
<server> | |
<id>artifactory-releases</id> | |
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username> | |
<password>${{ secrets.ARTIFACTORY_PASSWORD }}</password> | |
</server> | |
</servers> | |
</settings> | |
EOF | |
cp ~/.m2/settings.xml settings.xml | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- if: ${{ matrix.latest }} | |
name: Publish ${{ matrix.dse-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:6.9-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.9.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |
- if: ${{ !matrix.latest }} | |
name: Publish ${{ matrix.cassandra-version }} (${{ matrix.image-base }}) to Registry | |
run: | | |
RELEASE_VERSION="${GITHUB_REF##*/}" | |
docker buildx build --push \ | |
--build-arg DSE_VERSION=${{ matrix.dse-version }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }} \ | |
--tag datastax/dse-mgmtapi-6_8:${{ matrix.dse-version }}-${{ matrix.image-base }}-$RELEASE_VERSION \ | |
--file dse/Dockerfile-dse6.9.${{ matrix.image-base }} \ | |
--target dse \ | |
--platform linux/amd64 . | |