Skip to content

Commit

Permalink
fix: build-tags should be key=value, not key:value in with block
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Nov 27, 2023
1 parent 6c96a29 commit ddff69e
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/release-distributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
tagName: ${{ github.ref_name }}

jobs:
release-images:
setup-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -30,18 +30,42 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

release-observer:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref_name, 'observer-') }}
needs: setup-docker
steps:
- name: Set Version variables
id: set_version_vars
run: echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*\.\d*-\d{18})' --only-matching)" >> $GITHUB_OUTPUT

- name: Build and push observer w/o cache
uses: docker/build-push-action@v2
if: ${{ startsWith(github.ref_name, 'observer-') }}
with:
context: ./distribution/oceanbase
platforms: linux/amd64,linux/arm64
file: ./distribution/oceanbase/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/oceanbase-cloud-native:${{ steps.set_version_vars.outputs.version }}
build-args: |
VERSION:${{ steps.set_version_vars.outputs.version }}
VERSION=${{ steps.set_version_vars.outputs.version }}
release-obproxy:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref_name, 'obproxy-') }}
needs: setup-docker
steps:
- name: Set Version variables
id: set_version_vars
run: echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*\.\d*-\d{18})' --only-matching)" >> $GITHUB_OUTPUT

- name: Build and push obproxy w/o cache
uses: docker/build-push-action@v2
with:
context: ./distribution/obproxy
platforms: linux/amd64,linux/arm64
file: ./distribution/obproxy/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/obproxy-cloud-native:${{ steps.set_version_vars.outputs.version }}
build-args: |
VERSION=${{ steps.set_version_vars.outputs.version }}

0 comments on commit ddff69e

Please sign in to comment.