This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
forked from tmforum-oda/oda-canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add action for building sidecar dockerfile.
- Loading branch information
1 parent
fa2480c
commit 15d8c77
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,38 @@ | ||
name: Build SecretsManagement-Sidecar Dockerimage | ||
run-name: Build SecretsManagement-Sidecar Dockerimage | ||
on: | ||
push: | ||
branches: | ||
- odaa-* | ||
paths: | ||
- source/operators/secretsmanagementOperator-hc/sidecar/docker/**/* | ||
jobs: | ||
build-secretsmanagement-Sidecar-dockerfile-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Get Git commit timestamps | ||
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: source/operators/secretsmanagementOperator-hc/sidecar/docker | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: | | ||
ocfork/secretsmanagement-sidecar:latest | ||
ocfork/secretsmanagement-sidecar:0.1.0-rc | ||
env: | ||
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }} |
1 change: 1 addition & 0 deletions
1
source/operators/secretsmanagementOperator-hc/sidecar/docker/trigger-docker-build.txt
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 @@ | ||
this file should only trigger the docker build. |