Update Gitea workflows to use GITEA_TOKEN and gitea.actor for registry login, removing the need for manual secrets.
This commit is contained in:
1 parent
3aecb3a631
commit
b9203f74f4
2 files changed
+10
-10
No files matched your search
@@ -27,8 +27,8 @@ jobs:
|
||||
|
||||
- name: Log in to the registry
|
||||
run: >
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
echo "${{ secrets.GITEA_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
@@ -44,8 +44,8 @@ jobs:
|
||||
|
||||
- name: Log in to the registry
|
||||
run: >
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
echo "${{ secrets.GITEA_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
@@ -61,8 +61,8 @@ jobs:
|
||||
|
||||
- name: Log in to the registry
|
||||
run: >
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
echo "${{ secrets.GITEA_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
@@ -78,8 +78,8 @@ jobs:
|
||||
|
||||
- name: Log in to the registry
|
||||
run: >
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
echo "${{ secrets.GITEA_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user