diff --git a/.github/workflows/release-container.yml b/.github/workflows/release-container.yml deleted file mode 100644 index cd647e8c54..0000000000 --- a/.github/workflows/release-container.yml +++ /dev/null @@ -1,55 +0,0 @@ - name: Release Keycloak container - on: - workflow_dispatch: - #push: - # tags: - # - '[0-9]+.[0-9]+.[0-9]+' - concurrency: keycloak-container-release - - jobs: - publish: - if: github.repository == 'keycloak/keycloak' - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Quay - uses: docker/login-action@v2 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_TOKEN }} - - - name: Login to Docker - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: Container metadata - id: meta - uses: docker/metadata-action@v4 - with: - images: | - keycloak/keycloak - quay.io/keycloak/keycloak - tags: | - type=ref,event=branch - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - - - name: Build and push the image - uses: docker/build-push-action@v3 - with: - context: quarkus/container - platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/release-operator-container.yml b/.github/workflows/release-operator-container.yml deleted file mode 100644 index 72ba237a9b..0000000000 --- a/.github/workflows/release-operator-container.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Release Keycloak Operator container - -on: - workflow_dispatch: - #push: - # tags: - # - '[0-9]+.[0-9]+.[0-9]+' -concurrency: keycloak-operator-container-release - -env: - JDK_VERSION: 11 - -jobs: - publish: - if: github.repository == 'keycloak/keycloak' - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: ${{ env.JDK_VERSION }} - cache: 'maven' - - - name: Build locally Keycloak artifacts to avoid depending on Maven - run: | - mvn -P operator -pl operator -am clean install -DskipTests - - - name: Login to Quay - uses: docker/login-action@v2 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_TOKEN }} - - - name: Login to Docker - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - logout: true - - - name: Container metadata - id: meta - uses: docker/metadata-action@v4 - with: - images: | - keycloak/keycloak-operator - quay.io/keycloak/keycloak-operator - tags: | - type=ref,event=branch - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - - - name: Build and push the operator image - working-directory: operator - run: | - echo "${{ steps.meta.outputs.tags }}" | xargs -I {} \ - mvn clean package \ - -DskipTests \ - -Dquarkus.container-image.image={} \ - -Dquarkus.container-image.build=true \ - -Dquarkus.container-image.push=true