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
6 changes: 3 additions & 3 deletions agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/pasturestack/node-agent-base:v0.3.10@sha256:7a8c59c9c9351999803029b1289e3172e9291a427712f4215a9d62571eb68515
FROM ghcr.io/pasturestack/node-agent-base:v0.3.11@sha256:eaa5a5e13a64a75b43d8e803daeabdc17a3fc8ea65924cb297e4e15786f51db1
ARG VCS_REF
COPY control_plane_url.py register.py resolve_url.py run.sh /
COPY loglevel /usr/bin/loglevel
Expand All @@ -8,9 +8,9 @@ LABEL "io.rancher.container.system"="rancher-agent" \
org.opencontainers.image.source="https://github.com/PastureStack/server" \
org.opencontainers.image.description="PastureStack node-agent compatibility image." \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version="v1.2.36" \
org.opencontainers.image.version="v1.2.37" \
org.opencontainers.image.revision=$VCS_REF
RUN test -s /usr/bin/share-mnt && \
chmod +x /run.sh /register.py /resolve_url.py /usr/bin/share-mnt /usr/bin/loglevel && \
chmod 0644 /control_plane_url.py
ENV RANCHER_AGENT_IMAGE=ghcr.io/pasturestack/node-agent:v1.2.36
ENV RANCHER_AGENT_IMAGE=ghcr.io/pasturestack/node-agent:v1.2.37
8 changes: 4 additions & 4 deletions agent/base-evidence.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AGENT_BASE_RUN=43700852655
AGENT_BASE_REVISION=a4bfd9778a2c428f40cbbe10883d6d3a89f1c7c3
AGENT_BASE_DIGEST=sha256:7a8c59c9c9351999803029b1289e3172e9291a427712f4215a9d62571eb68515
AGENT_BASE_RECEIPT_SHA256=4cdd392d934d82886c5385fab8ad7ef0e1f289caa8055e2825dd4d9e2f8b5138
AGENT_BASE_RUN=46166279133
AGENT_BASE_REVISION=a2cf628ef1af6890b662daec3b50a9d00525d10a
AGENT_BASE_DIGEST=sha256:eaa5a5e13a64a75b43d8e803daeabdc17a3fc8ea65924cb297e4e15786f51db1
AGENT_BASE_RECEIPT_SHA256=6f59b401e4c2b83ba49ab7645b456aadfefbe7acabaae2cbcd7c4797befd411e
8 changes: 4 additions & 4 deletions scripts/build-agent-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ python3 scripts/test-agent-package-consistency.py

case "${COMPONENT:-}" in
base) repository=ghcr.io/pasturestack/node-agent-base; version=v0.3.11 ;;
agent) repository=ghcr.io/pasturestack/node-agent; version=v1.2.36 ;;
agent) repository=ghcr.io/pasturestack/node-agent; version=v1.2.37 ;;
*) echo 'Unsupported agent component' >&2; exit 1 ;;
esac
[[ "${PUBLISH:-false}" = true || "${PUBLISH:-false}" = false ]]
Expand Down Expand Up @@ -83,8 +83,8 @@ else
source agent/base-evidence.env
[[ "$AGENT_BASE_RUN" =~ ^[0-9]+$ && "$AGENT_BASE_REVISION" =~ ^[0-9a-f]{40}$ ]]
[[ "$AGENT_BASE_DIGEST" =~ ^sha256:[0-9a-f]{64}$ && "$AGENT_BASE_RECEIPT_SHA256" =~ ^[0-9a-f]{64}$ ]]
grep -Fx "FROM ghcr.io/pasturestack/node-agent-base:v0.3.10@$AGENT_BASE_DIGEST" agent/Dockerfile
grep -Fq 'org.opencontainers.image.version="v1.2.36"' agent/Dockerfile
grep -Fx "FROM ghcr.io/pasturestack/node-agent-base:v0.3.11@$AGENT_BASE_DIGEST" agent/Dockerfile
grep -Fq 'org.opencontainers.image.version="v1.2.37"' agent/Dockerfile
gh api "repos/PastureStack/server/actions/runs/$AGENT_BASE_RUN" \
--jq '[.head_sha,.conclusion,.path] | @tsv' \
| grep -Fx "$(printf '%s\tsuccess\t.github/workflows/publish-node-agent.yml' "$AGENT_BASE_REVISION")"
Expand All @@ -94,7 +94,7 @@ else
printf '%s %s\n' "$AGENT_BASE_RECEIPT_SHA256" "$base_evidence/SHA256SUMS" | sha256sum --check --strict
(cd "$base_evidence"; sha256sum --check --strict SHA256SUMS)
grep -Fx "repository=ghcr.io/pasturestack/node-agent-base" "$base_evidence/published.txt"
grep -Fx "version=v0.3.10" "$base_evidence/published.txt"
grep -Fx "version=v0.3.11" "$base_evidence/published.txt"
grep -Fx "source=$AGENT_BASE_REVISION" "$base_evidence/published.txt"
grep -Fx "digest=$AGENT_BASE_DIGEST" "$base_evidence/published.txt"
IMAGE="$candidate" bash agent/build-image.sh |& tee "$evidence/build.log"
Expand Down