ci(release): use correct credentials

This commit is contained in:
PalmDevs
2024-07-20 23:36:58 +07:00
parent e7ddbe8abd
commit 57891428a2
3 changed files with 4 additions and 14 deletions

View File

@@ -50,8 +50,9 @@ jobs:
- name: Build and release
env:
RELEASE_WORKFLOW_STEP: release
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
DOCKER_REGISTRY_USER: ${{ github.repository_owner }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
run: bunx multi-semantic-release
# We call multi-semantic-release twice to publish in a different step
@@ -60,9 +61,6 @@ jobs:
if: github.ref == 'refs/heads/main'
env:
RELEASE_WORKFLOW_STEP: publish
DOCKER_REGISTRY_USER: ${{ github.actor }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
WEBSOCKET_API_PORTAINER_WEBHOOK_URL: ${{ secrets.WEBSOCKET_API_PORTAINER_WEBHOOK_URL }}
DISCORD_BOT_PORTAINER_WEBHOOK_URL: ${{ secrets.DISCORD_BOT_PORTAINER_WEBHOOK_URL }}
@@ -71,8 +69,8 @@ jobs:
- name: Purge outdated images
uses: snok/container-retention-policy@v3.0.0
with:
account: ${{ github.actor }}
token: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
account: ${{ github.repository_owner }}
token: ${{ secrets.DELETE_PACKAGES_TOKEN }}
image-names: "revanced-bot-*"
keep-n-most-recent: 5
cut-off: 3M