Skip to content

build(deps-dev): bump @types/chrome from 0.2.9 to 0.3.0 (#1549) #4266

build(deps-dev): bump @types/chrome from 0.2.9 to 0.3.0 (#1549)

build(deps-dev): bump @types/chrome from 0.2.9 to 0.3.0 (#1549) #4266

Workflow file for this run

name: build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
call-build-js:
uses: ./.github/workflows/_build-js.yml
secrets: inherit
call-build-rs:
uses: ./.github/workflows/_build-rs.yml
secrets: inherit
call-build-ee-psso:
uses: ./.github/workflows/_build-ee-psso.yml
secrets: inherit
call-package-darwin:
needs:
- call-build-rs
- call-build-ee-psso
uses: ./.github/workflows/_package-darwin.yml
secrets: inherit
call-package-windows:
needs:
- call-build-rs
uses: ./.github/workflows/_package-windows.yml
secrets: inherit
call-package-linux:
needs:
- call-build-rs
uses: ./.github/workflows/_package-linux.yml
secrets: inherit
call-deploy:
needs:
- call-build-js
- call-build-rs
- call-package-darwin
- call-package-windows
- call-package-linux
uses: ./.github/workflows/_deploy.yml
secrets: inherit
with:
upload-repo-artifact: true
deploy-to-netlify:
needs: call-deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
permissions:
pull-requests: write
outputs:
deploy-url: ${{ steps.netlify.outputs.deploy-url }}
steps:
- name: Determine component name
id: component
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "component=pr-${{ github.event.number }}" >> $GITHUB_OUTPUT
else
echo "component=main" >> $GITHUB_OUTPUT
fi
- name: Download repository
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v6
with:
name: repo
path: ./deploy
- name: Download packages
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v6
with:
name: all-packages
path: ./deploy/packages
- id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
- uses: nwtgck/actions-netlify@d22a32a27c918fe470bbc562e984f80ec48c2668 # v4.0.0
id: netlify
with:
publish-dir: "./deploy"
production-deploy: false
github-token: ${{ steps.app-token.outputs.token }}
deploy-message: "Repo: ${{ github.event_name == 'pull_request' && format('PR #{0}', github.event.number) || 'main' }}"
alias: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || 'main' }}
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: authentik-pkg.netlify.app
build-container:
needs: deploy-to-netlify
permissions:
packages: write
strategy:
fail-fast: false
matrix:
target:
- containers/selenium
- containers/ssh
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
env:
AK_DEPLOY_URL: ${{ needs.deploy-to-netlify.outputs.deploy-url }}
AK_TAG_SUFFIX: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || 'main' }}
run: |
cd ${{ matrix.target }}
echo "tag<<EOF" >> $GITHUB_OUTPUT
make ci-container-tag >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "build-args<<EOF" >> $GITHUB_OUTPUT
make ci-build-args >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
id: push
with:
context: ${{ matrix.target }}
file: ${{ matrix.target }}/Dockerfile
push: true
build-args: ${{ steps.meta.outputs.build-args }}
tags: ${{ steps.meta.outputs.tag }}
platforms: linux/amd64,linux/arm64