From 96afd459638210ecb61888890412943edeba052d Mon Sep 17 00:00:00 2001 From: ethanrous Date: Sun, 10 May 2026 08:45:24 -0400 Subject: [PATCH 1/6] push devel image in test --- .github/workflows/test.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 13fd9b5a..7585c315 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ on: branches: ["main"] env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ github.token }} jobs: test-server: @@ -139,7 +139,7 @@ jobs: _build/logs/ retention-days: 7 - test-build-container: + test-build-image: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -151,4 +151,11 @@ jobs: sudo systemctl restart docker ./scripts/gogogadgetdocker.bash -s -t devel -a amd64 - exit $? + + docker tag ghcr.io/ethanrous/weblens:devel ghcr.io/ethanrous/weblens:devel-$GITHUB_REF_NAME-$GITHUB_SHA + docker push ghcr.io/ethanrous/weblens:devel-$GITHUB_REF_NAME-$GITHUB_SHA + + echo "Built and pushed image: + ``` + ghcr.io/ethanrous/weblens:devel-$GITHUB_REF_NAME-$GITHUB_SHA + ```">>$GITHUB_STEP_SUMMARY From d720ac549e1c8d99b0e6a6cb35487477f94680f0 Mon Sep 17 00:00:00 2001 From: ethanrous Date: Sun, 10 May 2026 08:50:06 -0400 Subject: [PATCH 2/6] WIP --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7585c315..6219d261 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -152,10 +152,10 @@ jobs: ./scripts/gogogadgetdocker.bash -s -t devel -a amd64 - docker tag ghcr.io/ethanrous/weblens:devel ghcr.io/ethanrous/weblens:devel-$GITHUB_REF_NAME-$GITHUB_SHA - docker push ghcr.io/ethanrous/weblens:devel-$GITHUB_REF_NAME-$GITHUB_SHA + docker tag ghcr.io/ethanrous/weblens:devel ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA + docker push ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA echo "Built and pushed image: ``` - ghcr.io/ethanrous/weblens:devel-$GITHUB_REF_NAME-$GITHUB_SHA + ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA ```">>$GITHUB_STEP_SUMMARY From e91ffa613f5517a8c6dbc9c34a55bea921af6cd4 Mon Sep 17 00:00:00 2001 From: ethanrous Date: Sun, 10 May 2026 08:53:32 -0400 Subject: [PATCH 3/6] WIP --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6219d261..dbbc9de7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,10 @@ on: env: GH_TOKEN: ${{ github.token }} +permissions: + contents: read + packages: write + jobs: test-server: runs-on: ubuntu-latest From 025d67b4b98b16b8c614fa85ad456fffdba74749 Mon Sep 17 00:00:00 2001 From: ethanrous Date: Sun, 10 May 2026 09:00:58 -0400 Subject: [PATCH 4/6] WIP --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dbbc9de7..3c16c1b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -150,6 +150,14 @@ jobs: - uses: docker/setup-docker-action@v4 + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + # Use the GITHUB_TOKEN secret provided by GitHub Actions + password: ${{ secrets.GITHUB_TOKEN }} + - name: GoGoGadgetDocker run: | sudo systemctl restart docker From eae76b5b9704049a886ce99e2a2d4aebc41c20b0 Mon Sep 17 00:00:00 2001 From: ethanrous Date: Sun, 10 May 2026 09:17:51 -0400 Subject: [PATCH 5/6] WIP --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c16c1b1..16b8d37d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -167,7 +167,7 @@ jobs: docker tag ghcr.io/ethanrous/weblens:devel ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA docker push ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA - echo "Built and pushed image: - ``` - ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA - ```">>$GITHUB_STEP_SUMMARY + echo "Built and pushed image:" >> $GITHUB_STEP_SUMMARY + echo '```' >> \$GITHUB_STEP_SUMMARY + echo "ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA" >> \$GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY From 274062828c36f7278dec96b1eda7fccf6585bb2c Mon Sep 17 00:00:00 2001 From: ethanrous Date: Sun, 10 May 2026 09:25:48 -0400 Subject: [PATCH 6/6] WIP --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16b8d37d..78a22817 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -168,6 +168,6 @@ jobs: docker push ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA echo "Built and pushed image:" >> $GITHUB_STEP_SUMMARY - echo '```' >> \$GITHUB_STEP_SUMMARY - echo "ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA" >> \$GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + echo "ghcr.io/ethanrous/weblens:devel-$GITHUB_HEAD_REF-$GITHUB_SHA" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY