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
7 changes: 0 additions & 7 deletions .github/actions/test/integration/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ runs:
sed -i "s|PASSWORD_GOES_HERE|$PASSWORD|g" ./.github/actions/test/integration/build/dev-user-butane.yaml
sed -i "s|TAG_GOES_HERE|${{ inputs.image_tag }}|g" ./.github/actions/test/integration/build/dev-user-butane.yaml

openssl req -new -x509 -days 3650 -nodes -sha256 \
-subj "/C=XX/ST=State/L=City/O=GardenLinux/CN=Test CA" \
-keyout "$RUNNER_TEMP/dummy-cakey.pem" -out "$RUNNER_TEMP/dummy-cacert.pem"
CA_CERT_B64=$(base64 -w 0 "$RUNNER_TEMP/dummy-cacert.pem")
sed -i "s|CA_CERT_BASE64_GOES_HERE|$CA_CERT_B64|g" ./.github/actions/test/integration/build/dev-user-butane.yaml
rm -f "$RUNNER_TEMP/dummy-cakey.pem"

butane --pretty --strict ./.github/actions/test/integration/build/dev-user-butane.yaml > "/opt/${TAG}.ign"

- name: Download ubuntu cloud image
Expand Down
13 changes: 7 additions & 6 deletions .github/actions/test/integration/build/dev-user-butane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ storage:
kernel.core_pattern=|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h
kernel.core_pipe_limit=16
fs.suid_dumpable=2
# Dummy CA certificate for libvirt TLS
- path: /etc/pki/CA/cacert.pem
mode: 0644
contents:
compression: ""
source: data:;base64,CA_CERT_BASE64_GOES_HERE
# Disable libvirt sockets not required for CI tests
systemd:
units:
- name: libvirtd-tls.socket
mask: true
- name: libvirtd-tcp.socket
mask: true
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
if: ${{ inputs.image_tag == '' || github.event_name == 'workflow_run' || github.event_name == 'push' }}
run: |
#latest_tag=$(oras repo tags ghcr.io/gardenlinux/gardenlinux-ccloud | grep -E '^[0-9]+\.[0-9]+\.[0-9]+-metal-sci-usi-amd64-[0-9]+-[0-9]+-[0-9]-[0-9a-f]{8}$' | sort -r | head -n 1)
latest_tag=$(oras repo tags ghcr.io/gardenlinux/gardenlinux-ccloud | grep -E '^1877\.[0-9]+\.[0-9]+-metal-sci-usi-amd64-[0-9]+-[0-9]+-[0-9a-f]{8}$' | sort -r | head -n 1)
latest_tag=$(oras repo tags ghcr.io/gardenlinux/gardenlinux-ccloud | grep -E '^1877\.[0-9]+\.[0-9]+-metal-sci-usi-amd64-[0-9]+-[0-9]+-[0-9]+-[0-9a-f]{8}$' | sort -r | head -n 1)
echo $latest_tag
echo "latest_tag=$latest_tag" >> $GITHUB_ENV
- name: Build
Expand Down
Loading