diff --git a/.github/actions/comment-pr-instructions/action.yml b/.github/actions/comment-pr-instructions/action.yml index 21c8d1d4e..0d0a5163c 100644 --- a/.github/actions/comment-pr-instructions/action.yml +++ b/.github/actions/comment-pr-instructions/action.yml @@ -38,6 +38,14 @@ runs: AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s ``` + For arm64, use these values: + + ```shell + AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server + AUTHENTIK_TAG=${{ inputs.tag }}-arm64 + AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s + ``` + Afterwards, run the upgrade commands from the latest release notes.
@@ -54,6 +62,17 @@ runs: tag: ${{ inputs.tag }} ``` + For arm64, use these values: + + ```yaml + authentik: + outposts: + container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s + image: + repository: ghcr.io/goauthentik/dev-server + tag: ${{ inputs.tag }}-arm64 + ``` + Afterwards, run the upgrade commands from the latest release notes.
edit-mode: replace diff --git a/.github/actions/docker-push-variables/action.yml b/.github/actions/docker-push-variables/action.yml index 98d0b20cb..4e9c6164b 100644 --- a/.github/actions/docker-push-variables/action.yml +++ b/.github/actions/docker-push-variables/action.yml @@ -17,6 +17,9 @@ outputs: sha: description: "sha" value: ${{ steps.ev.outputs.sha }} + shortHash: + description: "shortHash" + value: ${{ steps.ev.outputs.shortHash }} version: description: "version" value: ${{ steps.ev.outputs.version }} @@ -53,6 +56,7 @@ runs: print("branchNameContainer=%s" % safe_branch_name, file=_output) print("timestamp=%s" % int(time()), file=_output) print("sha=%s" % os.environ["GITHUB_SHA"], file=_output) + print("shortHash=%s" % os.environ["GITHUB_SHA"][:7], file=_output) print("shouldBuild=%s" % should_build, file=_output) print("version=%s" % version, file=_output) print("versionFamily=%s" % version_family, file=_output) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 4569cea36..ef76d6fab 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -169,11 +169,6 @@ jobs: needs: ci-core-mark runs-on: ubuntu-latest timeout-minutes: 120 - strategy: - fail-fast: false - matrix: - arch: - - 'linux/amd64' steps: - uses: actions/checkout@v3 - name: Set up QEMU @@ -201,14 +196,49 @@ jobs: push: ${{ steps.ev.outputs.shouldBuild == 'true' }} tags: | ghcr.io/goauthentik/dev-server:gh-${{ steps.ev.outputs.branchNameContainer }} - ghcr.io/goauthentik/dev-server:gh-${{ steps.ev.outputs.branchNameContainer }}-${{ steps.ev.outputs.timestamp }}-${{ steps.ev.outputs.sha }} + ghcr.io/goauthentik/dev-server:gh-${{ steps.ev.outputs.branchNameContainer }}-${{ steps.ev.outputs.timestamp }}-${{ steps.ev.outputs.shortHash }} build-args: | GIT_BUILD_HASH=${{ steps.ev.outputs.sha }} VERSION_FAMILY=${{ steps.ev.outputs.versionFamily }} - platforms: ${{ matrix.arch }} - name: Comment on PR if: github.event_name == 'pull_request' continue-on-error: true uses: ./.github/actions/comment-pr-instructions with: - tag: gh-${{ steps.ev.outputs.branchNameContainer }}-${{ steps.ev.outputs.timestamp }}-${{ steps.ev.outputs.sha }} + tag: gh-${{ steps.ev.outputs.branchNameContainer }}-${{ steps.ev.outputs.timestamp }}-${{ steps.ev.outputs.shortHash }} + build-arm64: + needs: ci-core-mark + runs-on: ubuntu-latest + timeout-minutes: 120 + steps: + - uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2.1.0 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: prepare variables + uses: ./.github/actions/docker-push-variables + id: ev + env: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + - name: Login to Container Registry + uses: docker/login-action@v2 + if: ${{ steps.ev.outputs.shouldBuild == 'true' }} + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build Docker Image + uses: docker/build-push-action@v3 + with: + secrets: | + GEOIPUPDATE_ACCOUNT_ID=${{ secrets.GEOIPUPDATE_ACCOUNT_ID }} + GEOIPUPDATE_LICENSE_KEY=${{ secrets.GEOIPUPDATE_LICENSE_KEY }} + push: ${{ steps.ev.outputs.shouldBuild == 'true' }} + tags: | + ghcr.io/goauthentik/dev-server:gh-${{ steps.ev.outputs.branchNameContainer }}-arm64 + ghcr.io/goauthentik/dev-server:gh-${{ steps.ev.outputs.branchNameContainer }}-${{ steps.ev.outputs.timestamp }}-${{ steps.ev.outputs.shortHash }}-arm64 + build-args: | + GIT_BUILD_HASH=${{ steps.ev.outputs.sha }} + VERSION_FAMILY=${{ steps.ev.outputs.versionFamily }} + platforms: linux/arm64 diff --git a/.github/workflows/ci-outpost.yml b/.github/workflows/ci-outpost.yml index f2b3b5131..fc4dfd747 100644 --- a/.github/workflows/ci-outpost.yml +++ b/.github/workflows/ci-outpost.yml @@ -88,7 +88,6 @@ jobs: push: ${{ steps.ev.outputs.shouldBuild == 'true' }} tags: | ghcr.io/goauthentik/dev-${{ matrix.type }}:gh-${{ steps.ev.outputs.branchNameContainer }} - ghcr.io/goauthentik/dev-${{ matrix.type }}:gh-${{ steps.ev.outputs.branchNameContainer }}-${{ steps.ev.outputs.timestamp }} ghcr.io/goauthentik/dev-${{ matrix.type }}:gh-${{ steps.ev.outputs.sha }} file: ${{ matrix.type }}.Dockerfile build-args: | diff --git a/website/docs/installation/beta.mdx b/website/docs/installation/beta.mdx index fac82b627..0c1b42c73 100644 --- a/website/docs/installation/beta.mdx +++ b/website/docs/installation/beta.mdx @@ -26,6 +26,8 @@ AUTHENTIK_TAG=gh-next AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s ``` +The beta image is amd64 only. For arm64 platforms, append `-arm64` to the tag name. + Afterwards, run the upgrade commands from the latest release notes. @@ -43,6 +45,8 @@ image: pullPolicy: Always ``` +The beta image is amd64 only. For arm64 platforms, append `-arm64` to the tag name. + Afterwards, run the upgrade commands from the latest release notes.