forked from grafana/cortex-jsonnet
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Friedrich Gonzalez <[email protected]>
- Loading branch information
1 parent
a9fec63
commit ad97692
Showing
4 changed files
with
61 additions
and
4 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,44 @@ | ||
name: build-image | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'build-image/Dockerfile' | ||
- '.github/workflows/build-image.yaml' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'build-image/Dockerfile' | ||
- '.github/workflows/build-image.yaml' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout | ||
|
||
- name: Build & save image | ||
run: make build-image save-build-image | ||
|
||
- name: Upload Docker Images Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-image | ||
path: ./build-image.tar | ||
|
||
push: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout | ||
|
||
- name: Download Docker Images Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build-image | ||
|
||
- name: "Push image" | ||
run: ls -l * |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ cortex-mixin/out | |
cortex-mixin/vendor | ||
/test-readme/ | ||
.vscode | ||
build-image.tar |
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