Skip to content

Commit 42863bb

Browse files
authored
quay.io binary push on release (#75)
* Change runner to ubi9 Signed-off-by: Joseph <jvaikath@redhat.com> * Add quay.io push on new release Signed-off-by: Joseph <jvaikath@redhat.com> --------- Signed-off-by: Joseph <jvaikath@redhat.com>
1 parent 634e10f commit 42863bb

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Push binaries to Quay.io, when a new release is created
2+
name: oadp-cli binaries image push
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
# Check out code, podman login, run podman build, push to
10+
jobs:
11+
push-binaries:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Podman login
18+
run: podman login -u ${{ secrets.QUAY_USER }} -p ${{ secrets.QUAY_TOKEN }} quay.io
19+
20+
- name: Podman build and tag
21+
run: |
22+
podman build -f Dockerfile.download \
23+
-t quay.io/konveyor/oadp-cli-binaries:${{ github.ref_name }} \
24+
-t quay.io/konveyor/oadp-cli-binaries:latest .
25+
26+
- name: Podman push version tag
27+
run: podman push quay.io/konveyor/oadp-cli-binaries:${{ github.ref_name }}
28+
29+
- name: Podman push latest tag
30+
run: podman push quay.io/konveyor/oadp-cli-binaries:latest

Dockerfile.download

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN make release-build && \
2323
rm -rf /root/.cache/go-build && \
2424
rm -rf /go/pkg
2525

26-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
26+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
2727

2828
# Only copy compressed tarballs (much smaller than raw binaries)
2929
COPY --from=builder /archives /archives

0 commit comments

Comments
 (0)