Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/actions/build-deb/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ inputs:
ushift-branch:
description: MicroShift branch from https://github.com/openshift/microshift/branches
required: true
type: string
okd-version-tag:
description: OKD version tag from https://quay.io/repository/okd/scos-release?tab=tags
required: true
type: string

runs:
using: "composite"
Expand Down
7 changes: 0 additions & 7 deletions .github/actions/build-okd/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,26 @@ inputs:
ushift-branch:
description: MicroShift branch from https://github.com/openshift/microshift/branches
required: true
type: string
okd-version-tag:
description: OKD version tag from https://quay.io/repository/okd/scos-release?tab=tags
required: true
type: string
bootc-image-url:
description: Base Bootc image URL used in `make image` command
required: false
default: quay.io/centos-bootc/centos-bootc
type: string
bootc-image-tag:
description: Base Bootc image tag used in `make image` command
required: false
default: stream9
type: string
target-arch:
description: Target architecture for the OKD images
required: true
type: string
target-registry:
description: Target registry for the OKD images
required: true
type: string
token:
description: Token for the GitHub Container Registry
required: true
type: string

runs:
using: "composite"
Expand Down
18 changes: 3 additions & 15 deletions .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,36 @@
name: build-rpms-and-images
name: build-microshift
description: Reusable action to build MicroShift RPMs and container images

inputs:
ushift-branch:
description: MicroShift branch from https://github.com/openshift/microshift/branches
required: true
type: string
okd-version-tag:
description: OKD version tag from https://quay.io/repository/okd/scos-release?tab=tags
required: true
type: string
bootc-image-url:
description: Base Bootc image URL used in `make image` command
required: false
default: quay.io/centos-bootc/centos-bootc
type: string
bootc-image-tag:
description: Base Bootc image tag used in `make image` command
required: false
default: stream9
type: string
isolated-network:
description: Build and test the isolated network container image
required: false
default: 0
type: integer
ovnk-networking:
description: Use OVN-K networking
required: false
default: 0
type: integer
node-count:
description: Number of nodes in the MicroShift cluster
required: false
default: 1
type: integer
build:
type: choice
description: Types of artifacts to build
description: Types of artifacts to build (all, rpms, bootc-image)
required: true
options:
- all
- rpms
- bootc-image

runs:
using: "composite"
Expand Down Expand Up @@ -104,7 +92,7 @@ runs:
# Verify that Internet access is not available in the container
# when the isolated network is enabled
if [ "${{ inputs.isolated-network }}" = "1" ]; then
for cmd in "ping -c1 8.8.8.8" "curl -I quay.io" "curl -I ghcr.io"; do
for cmd in "ping -c1 -W10 8.8.8.8" "curl -I -m 10 quay.io" "curl -I -m 10 ghcr.io"; do
if sudo podman exec -i microshift-okd ${cmd} ; then
echo "ERROR: Internet access is available in the isolated network container"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/okd-version/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
run: |
sudo apt-get install -y jq
# Get the latest OKD version tag
okd_version_tag="$(curl -s https://quay.io/api/v1/repository/okd/scos-release/tag/ | jq -r ".tags[].name" | sort | tail -1)"
okd_version_tag="$(curl -s --max-time 60 https://quay.io/api/v1/repository/okd/scos-release/tag/ | jq -r ".tags[].name" | sort | tail -1)"
if [ -z "${okd_version_tag}" ]; then
echo "ERROR: No OKD version tag found"
exit 1
Expand Down
5 changes: 1 addition & 4 deletions .github/actions/podman-login/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,19 @@ inputs:
registry:
description: Registry to login to
required: false
type: string
default: ghcr.io
username:
description: Username to login with
required: false
type: string
default: ${{ github.actor }}
token:
description: Token for the registry
required: true
type: string

runs:
using: "composite"
steps:
- name: Login to GitHub Container Registry
- name: Login to the container registry
uses: redhat-actions/podman-login@v1
with:
registry: ${{ inputs.registry }}
Expand Down
5 changes: 2 additions & 3 deletions .github/actions/sos-report/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ inputs:
description: Collect the sos-report on the host if true or in the MicroShift container otherwise
required: false
default: false
type: boolean

runs:
using: "composite"
Expand All @@ -16,7 +15,7 @@ runs:
uses: ./.github/actions/arch

- name: Collect sos-report in the MicroShift containers
if: inputs.collect-on-host == false
if: ${{ inputs.collect-on-host == 'false' }}
shell: bash
run: |
set -euo pipefail
Expand All @@ -41,7 +40,7 @@ runs:
done

- name: Collect sos-report on the host
if: inputs.collect-on-host == true
if: ${{ inputs.collect-on-host == 'true' }}
shell: bash
run: |
set -euo pipefail
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-okd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
description: OKD version tag from https://quay.io/repository/okd/scos-release?tab=tags
type: string
okd-target-registry:
default: ghcr.io/microshift-io/okd
default: "ghcr.io/microshift-io/okd"
description: Target registry for the OKD release images for ARM
type: string

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Options used in the 'rpm' target
USHIFT_BRANCH ?= main
OKD_VERSION_TAG ?= $$(curl -s https://quay.io/api/v1/repository/okd/scos-release/tag/ | jq -r ".tags[].name" | sort | tail -1)
OKD_VERSION_TAG ?= $$(curl -s --max-time 60 https://quay.io/api/v1/repository/okd/scos-release/tag/ | jq -r ".tags[].name" | sort | tail -1)
RPM_OUTDIR ?=
# Options used in the 'image' target
BOOTC_IMAGE_URL ?= quay.io/centos-bootc/centos-bootc
Expand Down
2 changes: 1 addition & 1 deletion src/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fi

# Update the tag for the latest version
if [ "${TAG}" == "latest" ] ; then
TAG="$(curl -s "https://api.github.com/repos/${OWNER}/${REPO}/releases/latest" | jq -r .tag_name)"
TAG="$(curl -s --max-time 60 "https://api.github.com/repos/${OWNER}/${REPO}/releases/latest" | jq -r .tag_name)"
if [ -z "${TAG}" ] || [ "${TAG}" == "null" ] ; then
echo "ERROR: Could not determine the latest release tag from GitHub"
exit 1
Expand Down
Loading