From e46ded590bffe90864f9b83b128fedcb97417c43 Mon Sep 17 00:00:00 2001 From: syui Date: Mon, 12 Feb 2024 19:09:51 +0900 Subject: [PATCH] update wiki --- docs/wiki.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/wiki.md b/docs/wiki.md index e5b9534..bb31782 100644 --- a/docs/wiki.md +++ b/docs/wiki.md @@ -90,5 +90,30 @@ jobs: ### github-token ```yml +env: + IMAGE_NAME: ${{ github.repository }} + GITHUB_TOKEN: ${{ secrets.APP_TOKEN }} + REGISTRY: ghcr.io +jobs: + release: + name: Release + runs-on: ubuntu-latest + container: + image: archlinux + options: --privileged + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ env.GITHUB_TOKEN }} + - name: github container registry + run: | + docker tag ${{ env.IMAGE_NAME }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} ```