Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
add action for building sidecar dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ferenc-hechler committed Jun 9, 2024
1 parent fa2480c commit 15d8c77
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-secretsmanagement-sidecar-rc.yml
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 }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this file should only trigger the docker build.

0 comments on commit 15d8c77

Please sign in to comment.