Skip to content

Last fixes to GitHub actions CI - #1037

Open
stv0g wants to merge 3 commits into
masterfrom
github-ci-fixes
Open

Last fixes to GitHub actions CI#1037
stv0g wants to merge 3 commits into
masterfrom
github-ci-fixes

Conversation

@stv0g

@stv0g stv0g commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Refactor "Docker" to "Container"
  • Change image name from "ghcr.io/villasframework/villas/node" to "ghcr.io/villasframework/node"
  • Remove duplication in job names

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
@stv0g
stv0g requested a review from n-eiling as a code owner July 31, 2026 06:15
@stv0g
stv0g requested a review from leonardocarreras July 31, 2026 06:15

@leonardocarreras leonardocarreras left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @stv0g! Thanks, I have some comments, maybe you can have a quick look. Some are matter of preference too.

  • package-docker.yaml was not renamed, so that does not run
  • hardcoding makes more complicated to test from forks, can we use inputs.container_image in general or some derivative of it?
  • there is a pattern ${{ env.DOCKER_IMAGE }}:$ vs inputs.container_image, I think it might be nice to make it uniform. I tend now to like more inputs.container_image after reading, but either should work
  • devcontainer.json might need to change too, or will pull a stale image
    "image": "ghcr.io/villasframework/villas/node/dev-vscode:master",
  • some other smaller things in the individual comments

@@ -1,12 +1,12 @@
# SPDX-FileCopyrightText: 2026 Institute for Automation of Complex Power Systems, RWTH Aachen University

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may need to rename this file as packaging-container.yaml for it to work, this is why it skipped too many checks

on:
workflow_call:
inputs:
docker_image:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing container_image

on:
workflow_call:
inputs:
docker_image:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

container_image ?

env:
REGISTRY: ghcr.io
DOCKER_IMAGE: ${{ inputs.docker_image }}
CONTAINER_IMAGE: ghcr.io/villasframework/node

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONTAINER_IMAGE: ${{ inputs.container_image }} ? hardcoding breaks the forks

additionally, now there are two patterns, because others drop and use directly inputs.container_image


env:
REGISTRY: ghcr.io
DOCKER_IMAGE: ${{ inputs.docker_image }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONTAINER_IMAGE: ${{ inputs.container_image }} ?

runs-on: ubuntu-latest
container:
image: ${{ inputs.docker_image }}/dev-fedora:${{ inputs.ref }}
image: ghcr.io/villasframework/node/dev-fedora:${{ inputs.ref }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoding makes more complicated to test from forks, can we use inputs.container_image?

runs-on: ubuntu-latest
container:
image: ${{ inputs.docker_image }}/dev-fedora:${{ inputs.ref }}
image: ghcr.io/villasframework/node/dev-fedora:${{ inputs.ref }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoding makes more complicated to test from forks, can we use inputs.container_image?

token: ${{ github.token }}
owner: ${{ github.repository_owner }}
packages: ^villas/node(/.*)?$
packages: ^villasframework/node(/.*)?$

@leonardocarreras leonardocarreras Jul 31, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without the villasframework/ part, I think

--insecure-policy \
copy "docker-archive:./bundle-docker" \
"docker://${{ env.DOCKER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix-${{ matrix.system }}"
--insecure-policy \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line got duplicated from 156, likely a typo

runs-on: ubuntu-latest
container:
image: ${{ inputs.docker_image }}/dev-${{ matrix.image_name }}:${{ inputs.ref }}
image: ${{ inputs.container_image }}-dev-${{ matrix.image_name }}:${{ inputs.ref }}

@leonardocarreras leonardocarreras Jul 31, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image: ${{ inputs.container_image }}**/**dev-${{ matrix.image_name }}:${{ inputs.ref }} ? prepare creates it with / not - so the image will not be found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants