Skip to content

Commit a6e5a12

Browse files
authored
ci: build next (#247)
Signed-off-by: Philippe Martin <[email protected]>
1 parent 7dfcf48 commit a6e5a12

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

.github/workflows/build-next.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#
2+
# Copyright (C) 2025 Red Hat, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# SPDX-License-Identifier: Apache-2.0
17+
18+
name: CI
19+
20+
on:
21+
push:
22+
branches:
23+
- 'main'
24+
25+
jobs:
26+
build:
27+
runs-on: ubuntu-24.04
28+
steps:
29+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
30+
31+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
32+
name: Install pnpm
33+
with:
34+
run_install: false
35+
36+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
37+
with:
38+
node-version: 22
39+
cache: 'pnpm'
40+
41+
- name: Execute pnpm
42+
run: pnpm install
43+
44+
- name: Run Build
45+
run: pnpm build
46+
47+
- name: Login to ghcr.io
48+
run: podman login --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
49+
50+
- name: Publish Image
51+
id: publish-image
52+
run: |
53+
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/podman-desktop-extension-postgresql
54+
IMAGE_NIGHTLY=${IMAGE_NAME}:nightly
55+
IMAGE_SHA=${IMAGE_NAME}:${GITHUB_SHA}
56+
podman build -t $IMAGE_NIGHTLY .
57+
podman push $IMAGE_NIGHTLY
58+
podman tag $IMAGE_NIGHTLY $IMAGE_SHA
59+
podman push $IMAGE_SHA

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ FROM scratch
1111
LABEL org.opencontainers.image.title="PostgreSQL extension" \
1212
org.opencontainers.image.description="PostgreSQL extension" \
1313
org.opencontainers.image.vendor="Philippe Martin" \
14-
io.podman-desktop.api.version=">= 1.12.0"
14+
io.podman-desktop.api.version=">= 1.21.0"
1515

1616
COPY --from=builder /extension /extension

0 commit comments

Comments
 (0)