ci: use the job token for package pushes
ci / checks (push) Successful in 1m52s
ci / test (push) Successful in 1m57s
ci / chart (push) Successful in 5s
ci / web (push) Successful in 16s
ci / docker (push) Failing after 2m14s
ci / publish-edge-image (push) Skipped
ci / publish-edge-chart (push) Skipped
ci / checks (push) Successful in 1m52s
ci / test (push) Successful in 1m57s
ci / chart (push) Successful in 5s
ci / web (push) Successful in 16s
ci / docker (push) Failing after 2m14s
ci / publish-edge-image (push) Skipped
ci / publish-edge-chart (push) Skipped
The workflow already requests packages: write, so the built-in Gitea token can log in to the container and Helm registries. This avoids a repository secret that does not exist yet.
This commit is contained in:
1 parent
3c19c1b5db
commit
22c838eafe
2 files changed
+4
-4
No files matched your search
@@ -168,7 +168,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry: https://git.vhaudiquet.fr
|
registry: https://git.vhaudiquet.fr
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -206,7 +206,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Push the chart to the Gitea Helm registry
|
- name: Push the chart to the Gitea Helm registry
|
||||||
run: |
|
run: |
|
||||||
TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n')
|
TOKEN=$(echo -n "${{ secrets.GITEA_TOKEN }}" | tr -d '\n')
|
||||||
curl --fail --user "${{ gitea.actor }}:${TOKEN}" \
|
curl --fail --user "${{ gitea.actor }}:${TOKEN}" \
|
||||||
-X POST \
|
-X POST \
|
||||||
--upload-file rhema-together-*.tgz \
|
--upload-file rhema-together-*.tgz \
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry: https://git.vhaudiquet.fr
|
registry: https://git.vhaudiquet.fr
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
- name: Compute the release version
|
- name: Compute the release version
|
||||||
id: ver
|
id: ver
|
||||||
@@ -88,7 +88,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Push the chart to the Gitea Helm registry
|
- name: Push the chart to the Gitea Helm registry
|
||||||
run: |
|
run: |
|
||||||
TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n')
|
TOKEN=$(echo -n "${{ secrets.GITEA_TOKEN }}" | tr -d '\n')
|
||||||
curl --fail --user "${{ gitea.actor }}:${TOKEN}" \
|
curl --fail --user "${{ gitea.actor }}:${TOKEN}" \
|
||||||
-X POST \
|
-X POST \
|
||||||
--upload-file rhema-together-*.tgz \
|
--upload-file rhema-together-*.tgz \
|
||||||
|
|||||||
Reference in new issue
Block a user