Skip to content

ci: use container registry for container build cache#9809

Merged
rissson merged 1 commit intomainfrom
ci-cache-in-cr
May 22, 2024
Merged

ci: use container registry for container build cache#9809
rissson merged 1 commit intomainfrom
ci-cache-in-cr

Conversation

@rissson
Copy link
Member

@rissson rissson commented May 22, 2024

Details

Will hopefully avoid clogging up the actions cache with build blobs.


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson requested a review from a team as a code owner May 22, 2024 10:33
@rissson rissson self-assigned this May 22, 2024
@netlify
Copy link

netlify bot commented May 22, 2024

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit ad3aa9a
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/664dc9fcbdd9e40008c30648

@netlify
Copy link

netlify bot commented May 22, 2024

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit ad3aa9a
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/664dc9fccef69e00085cdb41

@codecov
Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.64%. Comparing base (8a6b34e) to head (ad3aa9a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9809   +/-   ##
=======================================
  Coverage   92.63%   92.64%           
=======================================
  Files         710      710           
  Lines       34706    34706           
=======================================
+ Hits        32150    32153    +3     
+ Misses       2556     2553    -3     
Flag Coverage Δ
e2e 49.67% <ø> (+0.01%) ⬆️
integration 25.51% <ø> (ø)
unit 90.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@BeryJu BeryJu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminds me that we still need to fix the CI pipeline to not attempt to push images for external PRs

@rissson rissson merged commit ef2e1ad into main May 22, 2024
@rissson rissson deleted the ci-cache-in-cr branch May 22, 2024 11:03
@github-actions
Copy link
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-ghcr.io/goauthentik/dev-server:gh-ad3aa9a74b47c1bc63b5b6642371160ed06506a5
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-ghcr.io/goauthentik/dev-server:gh-ad3aa9a74b47c1bc63b5b6642371160ed06506a5-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.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-ghcr.io/goauthentik/dev-server:gh-ad3aa9a74b47c1bc63b5b6642371160ed06506a5

For arm64, use these values:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-ghcr.io/goauthentik/dev-server:gh-ad3aa9a74b47c1bc63b5b6642371160ed06506a5-arm64

Afterwards, run the upgrade commands from the latest release notes.

kensternberg-authentik added a commit that referenced this pull request May 24, 2024
* main: (36 commits)
  ci: use container registry for container build cache (#9809)
  core: bump lxml from 5.2.1 to 5.2.2 (#9717)
  web: bump mermaid from 10.9.0 to 10.9.1 in /web (#9734)
  core: bump scim2-filter-parser from 0.5.0 to 0.5.1 (#9730)
  web: bump core-js from 3.37.0 to 3.37.1 in /web (#9733)
  stages/authenticator_webauthn: Update FIDO MDS3 & Passkey aaguid blobs (#9729)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#9802)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#9803)
  core: bump sentry-sdk from 2.2.0 to 2.2.1 (#9807)
  web: bump the storybook group in /web with 7 updates (#9804)
  web: bump glob from 10.3.15 to 10.3.16 in /web (#9805)
  root: docker-compose: remove version top level element (#9631)
  core, web: update translations (#9790)
  web: bump API Client version (#9801)
  web/admin: rework initial wizard pages and add grid layout (#9668)
  website/integrations: discord: fix typo (#9800)
  website/integration/netbox: fix group custom pipeline example (#9738)
  root: add primary-replica db router (#9479)
  website/integrations: add three more policy-expressions to discord-docs (#5760)
  website/integrations: netbox: add missing scope configuration (#9491)
  ...
kensternberg-authentik added a commit that referenced this pull request May 24, 2024
* dev:
  ci: use container registry for container build cache (#9809)
  web: fix esbuild issue with style sheets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants