diff --git a/.gitea/workflows/build-stable.yml b/.gitea/workflows/build-stable.yml index 8b340d9..dd7cb33 100644 --- a/.gitea/workflows/build-stable.yml +++ b/.gitea/workflows/build-stable.yml @@ -8,9 +8,12 @@ on: jobs: release-image: runs-on: ubuntu-latest + permissions: + contents: read + packages: write env: DOCKER_LATEST: stable - CONTAINER_NAME: drb-client-discord-bot + CONTAINER_NAME: op25-client steps: - name: Checkout uses: actions/checkout@v4 @@ -20,24 +23,24 @@ jobs: - name: Set up Docker BuildX uses: docker/setup-buildx-action@v3 - with: # replace it with your local IP + with: config-inline: | [registry."git.vpn.cusano.net"] http = false - insecure = false + insecure = false - - name: Login to DockerHub + - name: Login to Gitea Container Registry uses: docker/login-action@v3 with: - registry: git.vpn.cusano.net # replace it with your local IP - username: ${{ secrets.GIT_REPO_USERNAME }} - password: ${{ secrets.GIT_REPO_PASSWORD }} + registry: git.vpn.cusano.net + username: ${{ github.actor }} # Uses the user or bot that triggered the workflow + password: ${{ secrets.GITHUB_TOKEN }} # The built-in, temporary token - name: Get Meta id: meta run: | echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT + echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT - name: Validate build configuration uses: docker/build-push-action@v6 @@ -52,6 +55,6 @@ jobs: platforms: | linux/arm64 push: true - tags: | # replace it with your local IP and tags + tags: | git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} - git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }} \ No newline at end of file + git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }}