From afaa6a9addb19855b601a9e0fbea533c9f7f4527 Mon Sep 17 00:00:00 2001 From: Isah Idris <58168886+eedygreen@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:02:34 +0100 Subject: [PATCH 1/2] package write permission --- .github/workflows/deploy_testnet.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_testnet.yml b/.github/workflows/deploy_testnet.yml index 1931f4f..7404cd9 100644 --- a/.github/workflows/deploy_testnet.yml +++ b/.github/workflows/deploy_testnet.yml @@ -23,6 +23,7 @@ jobs: permissions: contents: read id-token: write + packages: write steps: - name: checkout the source code @@ -33,7 +34,7 @@ jobs: - name: login to ghcr id: ghcr - uses: docker/login-action@v3 + uses: docker/login-action@v6 with: registry: ${{ env.REGISTRY }} username: ${{ github.repository_owner }} From bb5e3c5b660e419e3d3c735ea9cb9781f1cb765d Mon Sep 17 00:00:00 2001 From: Isah Idris <58168886+eedygreen@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:03:35 +0100 Subject: [PATCH 2/2] fix fmt --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ca46acd..356b418 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Copyright 2020 ChainSafe Systems # SPDX-License-Identifier: LGPL-3.0-only -FROM alpine as alpine +FROM alpine AS alpine RUN apk --no-cache add ca-certificates FROM golang:1.19 AS builder @@ -17,5 +17,5 @@ COPY --from=builder /spectre ./ RUN chmod +x ./spectre RUN mkdir -p /mount COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -LABEL org.opencontainers.image.source https://github.com/sprintertech/spectre-node +LABEL org.opencontainers.image.source=https://github.com/sprintertech/spectre-node ENTRYPOINT ["./spectre"]