Skip to content

Commit

Permalink
Updates the GHA workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Harsha Voora <[email protected]>
  • Loading branch information
krishvoor committed Nov 6, 2023
1 parent 017b0dd commit 1243d54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,22 @@ jobs:
if: runner.os == 'Linux'

- name: Clone Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VER }}

- name: Login to the ${{ env.CONTAINER_REGISTRY }} Container Registry
run: podman login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN}
with:
env:
QUAY_USER: ${{ secrets.QUAY_USER }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}

- name: Build and Push multi-arch Image
id: push
run: |
make gha-build
make gha-push
env:
GO_VER: ${{ env.GO_VER }}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ container-build: build
--build-arg RHEL_VERSION=$(RHEL_VERSION) \
-t $(CONTAINER_NS)/$(BIN) ./containers

gha-build: build
gha-build:
@echo "Building the container image for GHA"
$(CONTAINER_BUILD) -f containers/Containerfile \
--build-arg RHEL_VERSION=$(RHEL_VERSION) --platform=linux/amd64,linux/arm64,linux/ppc64le,linux/s390x \
-t $(CONTAINER_NS) ./containers --manifest=$(CONTAINER_NS):latest

gha-push: gha-build
gha-push: build gha-build
@echo "Pushing Container Images & manifest"
$(CONTAINER_BUILD) manifest push

Expand Down

0 comments on commit 1243d54

Please sign in to comment.