chore(main): release 1.415.2 (#4616) #563
Workflow file for this run
This file contains 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
env: | |
REGISTRY: ghcr.io | |
ECR_REGISTRY: 976079455550.dkr.ecr.us-east-1.amazonaws.com | |
IMAGE_NAME: ${{ github.repository }}-lsp | |
name: Publish lsp | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
id-token: write | |
packages: write | |
jobs: | |
sleep: | |
runs-on: ubicloud | |
steps: | |
- name: Sleep for 900 seconds waiting for pypi to update index | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: sleep 900 | |
shell: bash | |
publish_lsp: | |
needs: [sleep] | |
runs-on: ubicloud | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: depot/setup-action@v1 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
- name: Login to registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push publicly | |
uses: depot/build-push-action@v1 | |
with: | |
context: "{{defaultContext}}:lsp" | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
${{ steps.meta.outputs.tags }} | |
labels: | | |
${{ steps.meta.outputs.labels }} | |
org.opencontainers.image.licenses=AGPLv3 |