-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work on building containers in PR-Branches (#160)
* work on building containers in PR-Branches * more cleanup * not sure now
- Loading branch information
Showing
2 changed files
with
43 additions
and
14 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 |
---|---|---|
@@ -1,19 +1,47 @@ | ||
name: Go Build | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go ${{ matrix.go-version }} | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23 | ||
# You can test your matrix by printing the current Go version | ||
- name: Display Go version | ||
run: go version | ||
- name: Build it | ||
run: make V=1 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go ${{ matrix.go-version }} | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23 | ||
# You can test your matrix by printing the current Go version | ||
- name: Display Go version | ||
run: go version | ||
- name: Build it | ||
run: make V=1 | ||
build-operator-container: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go ${{ matrix.go-version }} | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23 | ||
- name: Build it | ||
run: make V=1 | ||
- name: Extract metadata (Operator tags, labels) for Docker | ||
id: meta_operator | ||
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 | ||
with: | ||
images: ${{ env.REGISTRY }}/hyperspike/valkey-operator:${{ github.sha }} | ||
- name: Build Operator image | ||
uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc | ||
id: docker_build_operator | ||
with: | ||
file: Dockerfile.controller | ||
context: . | ||
push: false | ||
visibility: public | ||
tags: ${{ steps.meta_operator.outputs.images }} | ||
labels: ${{ steps.meta_operator.outputs.labels }} |
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