From 574f69e6ea2c30fd979430f0b471d8faad69daea Mon Sep 17 00:00:00 2001 From: Oak Date: Mon, 15 Jul 2024 12:01:04 +0100 Subject: [PATCH] fix: docs and docker ci (#48) --- .../workflows/{build-docker-image.yml => docker.yml} | 4 +++- .github/workflows/docs.yml | 10 ++++------ 2 files changed, 7 insertions(+), 7 deletions(-) rename .github/workflows/{build-docker-image.yml => docker.yml} (97%) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/docker.yml similarity index 97% rename from .github/workflows/build-docker-image.yml rename to .github/workflows/docker.yml index 63f28618..cda67006 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/docker.yml @@ -2,6 +2,8 @@ name: Build Docker Image on: release: types: [published] +permissions: + packages: write env: IMAGE: ghcr.io/${{ github.repository }} jobs: @@ -90,7 +92,7 @@ jobs: working-directory: /tmp/digests run: | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf '${{ env.IMAGE }}@sha256:%s ' *) + $(printf '${{ env.IMAGE }}@sha256:%s ' *) - name: Inspect image run: | docker buildx imagetools inspect ${{ env.IMAGE }}:${{ steps.meta.outputs.version }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 768c4ed4..fe05e0d1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,16 +9,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v1 - with: - node-version: 16 + uses: actions/setup-node@v4 - run: | yarn yarn docs - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v4 with: path: ./docs deploy: @@ -30,4 +28,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4