Translations updates (#202) #217
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright 2025 New Vector Ltd. | |
| # | |
| # SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial | |
| name: Build artifacts | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v* | |
| env: | |
| IMAGE: oci-push.element.io/element-admin | |
| jobs: | |
| build: | |
| name: Build and push Docker image | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Docker meta | |
| id: meta | |
| uses: docker/[email protected] | |
| with: | |
| images: "${{ env.IMAGE }}" | |
| bake-target: docker-metadata-action | |
| flavor: | | |
| latest=auto | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{major}} | |
| type=sha | |
| - name: Set up Docker Buildx | |
| uses: docker/[email protected] | |
| with: | |
| buildkitd-config-inline: | | |
| [registry."docker.io"] | |
| mirrors = ["mirror.gcr.io"] | |
| - name: Login to the container registry | |
| uses: docker/[email protected] | |
| with: | |
| registry: oci-push.element.io | |
| username: ${{ secrets.OCI_PUSH_USERNAME }} | |
| password: ${{ secrets.OCI_PUSH_PASSWORD }} | |
| - name: Build and push | |
| id: bake | |
| uses: docker/[email protected] | |
| with: | |
| files: | | |
| ./docker/docker-bake.hcl | |
| cwd://${{ steps.meta.outputs.bake-file }} | |
| set: | | |
| base.output=type=image,push=true |