Release DataLens v1.18.1 (#266) #37
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
name: Update docker images | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }} | |
env: | |
REGISTRY: ghcr.io | |
GH_REGISTRY_LOGIN: robot-charts | |
UI_IMAGE_NAME: datalens-tech/datalens-ui | |
US_IMAGE_NAME: datalens-tech/datalens-us | |
jobs: | |
run: | |
name: Set release tags | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Get last version config | |
run: | | |
VERSION_CONFIG=$(cat ./versions-config.json) | |
UI_VERSION=$(echo "${VERSION_CONFIG}" | jq -r '.uiVersion') | |
US_VERSION=$(echo "${VERSION_CONFIG}" | jq -r '.usVersion') | |
CONTROL_API_VERSION=$(echo "${VERSION_CONFIG}" | jq -r '.controlApiVersion') | |
DATA_API_VERSION=$(echo "${VERSION_CONFIG}" | jq -r '.dataApiVersion') | |
echo "UI_VERSION=$UI_VERSION" >> "$GITHUB_ENV" | |
echo "US_VERSION=$US_VERSION" >> "$GITHUB_ENV" | |
echo "CONTROL_API_VERSION=$CONTROL_API_VERSION" >> "$GITHUB_ENV" | |
echo "DATA_API_VERSION=$DATA_API_VERSION" >> "$GITHUB_ENV" | |
- uses: docker/setup-buildx-action@v3 | |
- name: Login to the Container registry | |
uses: docker/[email protected] | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.GH_REGISTRY_LOGIN }} | |
password: ${{ secrets.GH_REGISTRY_TOKEN }} | |
- name: Pull images and push with release tag | |
run: | | |
docker buildx imagetools create --tag ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:release ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:${{ env.UI_VERSION }} | |
docker buildx imagetools create --tag ${{ env.REGISTRY }}/${{ env.US_IMAGE_NAME }}:release ${{ env.REGISTRY }}/${{ env.US_IMAGE_NAME }}:${{ env.US_VERSION }} | |
docker buildx imagetools create --tag ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:release-e2e ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:${{ env.UI_VERSION }}-e2e |