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

Commit

Permalink
build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuee committed Oct 16, 2023
1 parent eb42733 commit 9e37aba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Docker Image
on:
workflow_call:
inputs:
folder:
dockerfile:
required: true
type: string
repo:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
run: |
set -x
docker build . --file ${{ inputs.folder }}/Dockerfile \
docker build . --file ${{ inputs.dockerfile }} \
--tag ${{ inputs.repo }}:${{ inputs.tag }} \
--build-arg GIT_COMMIT=${{ inputs.commit }} \
--build-arg REPO=$ECR_REGISTRY/ecr-public
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ name: pr
on:
pull_request:
paths:
- "**"
- ".github/workflows/pr.yaml"
- ".github/workflows/build-docer-image.yaml"
- "pkg/**"
- "cmd/**"
- "charts/**"
- "hack/dockerfiles/**"
branches: ["**"]

jobs:
build:
uses: ./.github/workflows/build-docker-image.yaml
secrets: inherit
with:
folder: ./
dockerfile: "hack/dockerfiles/release/Dockerfile.yurt-manager"
repo: raven-manager

2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: ./.github/workflows/build-docker-image.yaml
secrets: inherit
with:
folder: ./
dockerfile: "hack/dockerfiles/release/Dockerfile.yurt-manager"
repo: raven-manager
tag: ${GITHUB_REF##*/}
commit: ${GITHUB_REF##*/}
Expand Down

0 comments on commit 9e37aba

Please sign in to comment.