Skip to content

Commit 47cfb84

Browse files
committed
Rename containerfiles
1 parent 4b5b51a commit 47cfb84

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

.github/actions/build/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ inputs:
4747
type: string
4848
description: RPM builder image to use
4949
required: false
50-
default: microshift-okd-builder
50+
default: rpm-local-builder
5151

5252
runs:
5353
using: "composite"
@@ -62,11 +62,11 @@ runs:
6262

6363
- name: Prepare the build and run environment
6464
# Skip if the rpm-builder is overridden - release.yaml builds RPMs using COPR.
65-
if: inputs.rpm-builder == 'microshift-okd-builder'
65+
if: inputs.rpm-builder == 'rpm-local-builder'
6666
uses: ./.github/actions/prebuild
6767

6868
- name: Build MicroShift RPMs
69-
if: inputs.rpm-builder == 'microshift-okd-builder'
69+
if: inputs.rpm-builder == 'rpm-local-builder'
7070
shell: bash
7171
run: |
7272
# See https://github.com/microshift-io/microshift/blob/main/docs/build.md

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
ushift-branch: ${{ inputs.ushift-branch }}
5555
okd-version-tag: ${{ inputs.okd-version-tag }}
5656
build: bootc-image
57-
rpm-builder: microshift-copr-builder
57+
rpm-builder: rpm-copr-builder
5858

5959
# - name: Build MicroShift bootc container image
6060
# if: contains(fromJSON('["all", "bootc-image"]'), inputs.build)

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ISOLATED_NETWORK ?= 0
2020

2121
# Internal variables
2222
SHELL := /bin/bash
23-
BUILDER_IMAGE ?= microshift-okd-builder
23+
BUILDER_IMAGE ?= rpm-local-builder
2424
USHIFT_IMAGE := microshift-okd
2525
LVM_DISK := /var/lib/microshift-okd/lvmdisk.image
2626
VG_NAME := myvg1
@@ -60,13 +60,13 @@ all:
6060

6161
.PHONY: rpm
6262
rpm:
63-
@echo "Building the MicroShift builder image"
63+
@echo "Building the MicroShift RPMs"
6464
sudo podman build \
6565
-t "${BUILDER_IMAGE}" \
6666
--ulimit nofile=524288:524288 \
6767
--build-arg USHIFT_BRANCH="${USHIFT_BRANCH}" \
6868
--build-arg OKD_VERSION_TAG="${OKD_VERSION_TAG}" \
69-
-f packaging/microshift-builder.Containerfile .
69+
-f packaging/rpm-local-builder.Containerfile .
7070

7171
@echo "Extracting the MicroShift RPMs"
7272
outdir="$${RPM_OUTDIR:-$$(mktemp -d /tmp/microshift-rpms-XXXXXX)}" && \
@@ -108,7 +108,7 @@ image:
108108
--env WITH_TOPOLVM="${WITH_TOPOLVM}" \
109109
--env WITH_OLM="${WITH_OLM}" \
110110
--env EMBED_CONTAINER_IMAGES="${EMBED_CONTAINER_IMAGES}" \
111-
-f packaging/microshift-runner.Containerfile .
111+
-f packaging/bootc.Containerfile .
112112

113113
# Notes:
114114
# - An isolated network is created if the ISOLATED_NETWORK environment variable is set
@@ -168,6 +168,7 @@ clean-all:
168168
$(MAKE) clean
169169
sudo podman rmi -f "${USHIFT_IMAGE}" || true
170170
sudo podman rmi -f "${BUILDER_IMAGE}" || true
171+
sudo podman rmi -f "${COPR_BUILDER_IMAGE}" || true
171172

172173
.PHONY: check
173174
check: _hadolint _shellcheck
File renamed without changes.

src/copr/copr.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ COPR_BUILDS ?=
44
COPR_REPO_NAME ?= pmtk0/test123
55

66
COPR_SECRET_NAME := copr-cfg
7-
COPR_BUILDER_IMAGE := microshift-copr-builder
7+
COPR_BUILDER_IMAGE := rpm-copr-builder
88
COPR_CLI_IMAGE := localhost/copr-cli:latest
99

1010
.PHONY: copr-rpm
1111
copr-rpm:
12-
@echo "Building the MicroShift RPMs for COPR"
12+
@echo "Building the MicroShift RPMs using the COPR build service"
1313
sudo podman build \
1414
--tag "${COPR_BUILDER_IMAGE}" \
1515
--secret id=${COPR_SECRET_NAME},src=${COPR_CONFIG} \
1616
--ulimit nofile=524288:524288 \
1717
--build-arg USHIFT_BRANCH="${USHIFT_BRANCH}" \
1818
--build-arg OKD_VERSION_TAG="${OKD_VERSION_TAG}" \
1919
--env COPR_REPO_NAME="${COPR_REPO_NAME}" \
20-
--file packaging/microshift-copr.Containerfile .
20+
--file packaging/rpm-copr-builder.Containerfile .
2121

2222
@echo "Extracting the MicroShift RPMs"
2323
outdir="$${RPM_OUTDIR:-$$(mktemp -d /tmp/microshift-rpms-XXXXXX)}" && \

0 commit comments

Comments
 (0)