diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9754cd4..f86cd71 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,9 +11,18 @@ jobs: container: image: docker:dind options: --privileged + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_ACTOR: ${{ github.actor }} + GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} + GITHUB_REPOSITORY_NAME: ${{ github.repository_name }} + GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_SERVER_URL: https://git.neur0tx.site steps: - name: Checkout repository uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker buildx uses: docker/setup-buildx-action@v3 @@ -32,7 +41,7 @@ jobs: with: context: . push: true - tags: git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest + tags: git.neur0tx.site/${{ env.GITHUB_REPOSITORY_OWNER }}/${{ env.GITHUB_REPOSITORY_NAME }}:latest - name: Deploy if: ${{ success() }}