-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add dex Docker image #615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ updates: | |
| directories: | ||
| - '/cfssl' | ||
| - '/chromium' | ||
| - '/dex' | ||
| - '/elasticsearch' | ||
| - '/httpd' | ||
| - '/imgproxy' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| name: 'Build dex docker image' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: 0 7 * * THU | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - dex/** | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - dex/** | ||
| workflow_dispatch: | ||
| inputs: { } | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| jobs: | ||
| build-docker-image: | ||
| name: 'Build dex-${{ matrix.image.version }} docker image' | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| max-parallel: 10 | ||
| matrix: | ||
| image: | ||
| - version: 2 | ||
| latest: true | ||
| dockerfile: Dockerfile | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Setup Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
||
|
|
||
| - name: Read version from Dockerfile | ||
| id: docker | ||
| run: echo "version=$(./extract-version.sh ./dex/Dockerfile)" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Login to GHCR | ||
| if: github.event_name != 'pull_request' | ||
| uses: docker/login-action@v3 | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'Build dex docker image' step
Uses Step Error loading related location Loading |
||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.repository_owner }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build and push (dex) | ||
| uses: docker/build-push-action@v6 | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'Build dex docker image' step
Uses Step Error loading related location Loading |
||
| with: | ||
| builder: ${{ steps.buildx.outputs.name }} | ||
| context: ./dex | ||
| target: dex | ||
| file: ./dex/${{matrix.image.dockerfile}} | ||
| push: ${{ github.event_name != 'pull_request' }} | ||
| tags: ghcr.io/netlogix/docker/dex:${{ matrix.image.version }},ghcr.io/netlogix/docker/dex:${{ steps.docker.outputs.version }} | ||
| platforms: linux/amd64,linux/arm64 | ||
| cache-from: type=gha, scope=${{ github.workflow }}-dex | ||
| cache-to: type=gha, scope=${{ github.workflow }}-dex, mode=max | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| FROM ghcr.io/dexidp/dex:v2.43.1 AS dex | ||
|
|
||
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \ | ||
| CMD wget --no-verbose --tries=1 --spider http://localhost:5556/dex/.well-known/openid-configuration || exit 1 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium