Skip to content

Commit

Permalink
Add Red Hat UBI base image for imps-refresher image
Browse files Browse the repository at this point in the history
Signed-off-by: Vikram Hosakote <[email protected]>
  • Loading branch information
vhosakot committed Apr 10, 2023
1 parent 9f27360 commit fc89b50
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Check dependency licenses
env:
GITHUB_TOKEN: ${{ github.token }} # Note: this is required for licensei auth in steps to avoid rate-limiting.
run: make license-check
run: go mod vendor && make license-check

- name: Run lint
run: GOLANGCI_VERSION=${{ env.GOLANGCI_LINT_VERSION }} make lint
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/docker_refresher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,15 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache
tags: |
ghcr.io/banzaicloud/imagepullsecrets-refresher:${{ steps.imagetag.outputs.value }}
- name: Build imagepullsecrets refresher with Red Hat UBI base image
uses: docker/build-push-action@v3
with:
file: Dockerfile-refresher
platforms: ${{ env.PLATFORMS }}
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: |
FROM_IMAGE=redhat/ubi8-micro
tags: |
ghcr.io/banzaicloud/imagepullsecrets-refresher-rh-ubi8:${{ steps.imagetag.outputs.value }}
1 change: 1 addition & 0 deletions Dockerfile-refresher
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ WORKDIR /
COPY --from=builder /etc/nsswitch.conf.build /etc/nsswitch.conf
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /workspace/LICENSE.md /licenses/LICENSE.md

COPY --from=builder /workspace/manager .
USER nobody:nobody
Expand Down

0 comments on commit fc89b50

Please sign in to comment.