-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added workflows for obagent and ob-configserver (#7)
* fix(obproxy): removed redundant double quote for obproxy starup param values * chore(ci): added ci workflows for obagent and ob-configserver * fix(CR): rename obconfigserver to ob-configserver
- Loading branch information
Showing
4 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: release ob-configserver | ||
|
||
on: | ||
push: | ||
tags: | ||
- "ob-configserver-*" | ||
|
||
env: | ||
tagName: ${{ github.ref_name }} | ||
|
||
jobs: | ||
release-ob-configserver: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log in to Docker hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Set Version variables | ||
id: set_version_vars | ||
run: echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*-\d*)' --only-matching)" >> $GITHUB_OUTPUT | ||
|
||
- name: Build and push ob-configserver w/o cache | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ob-configserver | ||
platforms: linux/amd64,linux/arm64 | ||
file: ./ob-configserver/Dockerfile | ||
push: true | ||
tags: ${{ vars.DOCKER_PUSH_BASE }}/ob-configserver:${{ steps.set_version_vars.outputs.version }} | ||
build-args: | | ||
VERSION=${{ steps.set_version_vars.outputs.version }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: release obagent | ||
|
||
on: | ||
push: | ||
tags: | ||
- "obagent-*" | ||
|
||
env: | ||
tagName: ${{ github.ref_name }} | ||
|
||
jobs: | ||
release-obagent: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log in to Docker hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Set Version variables | ||
id: set_version_vars | ||
run: echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*-\d*)' --only-matching)" >> $GITHUB_OUTPUT | ||
|
||
- name: Build and push obagent w/o cache | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./obagent | ||
platforms: linux/amd64,linux/arm64 | ||
file: ./obagent/Dockerfile | ||
push: true | ||
tags: ${{ vars.DOCKER_PUSH_BASE }}/obagent:${{ steps.set_version_vars.outputs.version }} | ||
build-args: | | ||
VERSION=${{ steps.set_version_vars.outputs.version }} |
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
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