Skip to content

fix: arch variable invalid expression #46

fix: arch variable invalid expression

fix: arch variable invalid expression #46

Workflow file for this run

name: Build and deploy to docker hub
on:
push:
tags:
- '*'
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [17.0.11_9, 11.0.23_9, 8u412-b08]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Fetch tags
run: git fetch --tags
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get latest tag
id: get_latest_tag
run: |
TAG=$(cat LATEST_VERSION)
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Build image
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64, linux/arm64/v8
build-args: |
JDKVER=${{ matrix.jdk }}
TDVERSION=${{ steps.get_latest_tag.outputs.tag }}
file: Dockerfile
push: true
tags: |
enix223/tdengine-openjdk-client:${{ matrix.jdk }}-jdk-focal-${{ steps.get_latest_tag.outputs.tag }}