diff --git a/.github/workflows/build-and-push-docker-base-image.yml b/.github/workflows/build-and-push-docker-base-image.yml deleted file mode 100644 index 427435d..0000000 --- a/.github/workflows/build-and-push-docker-base-image.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Build and push Docker base image - -on: - push: - paths: - - ./Dockerfile.base - branches: - - master - workflow_dispatch: - -env: - ALPINE_VERSION: 3.16 - -jobs: - build-and-push-docker-base-image: - runs-on: self-hosted - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - platforms: linux/amd64,linux/arm64,linux/arm/v7 - file: Dockerfile.base - build-args: ALPINE_VERSION=${{ env.ALPINE_VERSION }} - push: true - tags: | - ghcr.io/plankanban/planka:base-latest - ghcr.io/plankanban/planka:base-${{ env.ALPINE_VERSION }} diff --git a/.github/workflows/build-and-push-docker-image-dev.yml b/.github/workflows/build-and-push-docker-image-dev.yml deleted file mode 100644 index 7b591f2..0000000 --- a/.github/workflows/build-and-push-docker-image-dev.yml +++ /dev/null @@ -1,107 +0,0 @@ -# https://docs.docker.com/build/ci/github-actions/multi-platform/ -name: Build and push Docker DEV image - -on: - push: - paths-ignore: - - '.github/**' - - 'charts/**' - - 'docker-*.sh' - - '*.md' - branches: [master] - -env: - REGISTRY_IMAGE: ghcr.io/plankanban/planka - -jobs: - build: - strategy: - fail-fast: false - matrix: - include: - - os: [self-hosted, x64] - platform: linux/amd64 - - os: [self-hosted, arm64] - platform: linux/arm64 - - os: [self-hosted, arm64] - platform: linux/arm/v7 - runs-on: ${{ matrix.os }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY_IMAGE }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push by digest - id: build - uses: docker/build-push-action@v5 - with: - context: . - platforms: ${{ matrix.platform }} - labels: ${{ steps.meta.outputs.labels }} - outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true - - name: Export digest - run: | - mkdir -p /tmp/digests - digest="${{ steps.build.outputs.digest }}" - touch "/tmp/digests/${digest#sha256:}" - - name: Upload digest - uses: actions/upload-artifact@v3 - with: - name: digests - path: /tmp/digests/* - if-no-files-found: error - retention-days: 1 - - merge: - runs-on: [self-hosted] - needs: - - build - steps: - - name: Download digests - uses: actions/download-artifact@v3 - with: - name: digests - path: /tmp/digests - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY_IMAGE }} - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Create manifest list and push - working-directory: /tmp/digests - run: | - docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) - - name: Inspect image - run: | - docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }} - rerun-failed-jobs: - runs-on: [self-hosted] - needs: [ build, merge] - if: failure() - steps: - - name: Rerun failed jobs in the current workflow - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh run rerun ${{ github.run_id }} --failed diff --git a/.github/workflows/build-and-push-docker-image.yml b/.github/workflows/build-and-push-docker-image.yml deleted file mode 100644 index 47bb737..0000000 --- a/.github/workflows/build-and-push-docker-image.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Build and push Docker image - -on: - release: - types: [created] - -jobs: - build-and-push-docker-image: - runs-on: self-hosted - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Set version - uses: actions/github-script@v6 - id: set-version - with: - result-encoding: string - script: return context.payload.release.tag_name.replace('v', '') - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - platforms: linux/amd64,linux/arm64,linux/arm/v7 - push: true - tags: | - ghcr.io/plankanban/planka:latest - ghcr.io/plankanban/planka:${{ steps.set-version.outputs.result }} diff --git a/.github/workflows/helm-chart-release.yml b/.github/workflows/helm-chart-release.yml deleted file mode 100644 index 44313e1..0000000 --- a/.github/workflows/helm-chart-release.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Release Charts - -on: - push: - paths: - - "charts/**" - branches: - - master - -jobs: - release: - # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions - # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token - permissions: - contents: write - runs-on: self-hosted - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Configure Git - run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - - name: Install Helm - uses: azure/setup-helm@v3 - - - name: Add repositories - run: | - for dir in $(ls -d charts/*/); do - helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done - done - - - name: Run chart-releaser for stable - uses: helm/chart-releaser-action@v1.6.0 - with: - charts_dir: charts - mark_as_latest: false - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"