This commit is contained in:
1 parent
eeebc4d447
commit
9abe345f68
1 file changed
+5
-5
@@ -10,10 +10,6 @@ on:
|
|||||||
- cron: '0 3 * * 1'
|
- cron: '0 3 * * 1'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
image:
|
image:
|
||||||
# The build runs on the runner's own Docker daemon, so the amd64 runner has the new
|
# The build runs on the runner's own Docker daemon, so the amd64 runner has the new
|
||||||
@@ -26,6 +22,10 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: docker build --pull -t "$IMAGE" .gitea/ci-image
|
run: docker build --pull -t "$IMAGE" .gitea/ci-image
|
||||||
- name: Push
|
- name: Push
|
||||||
|
# Gitea's Actions token cannot push to the container registry, so this uses an
|
||||||
|
# access token with the write:package scope.
|
||||||
|
env:
|
||||||
|
TOKEN: ${{ secrets.PACKAGES_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.trivk.dev -u "${{ github.actor }}" --password-stdin
|
echo "$TOKEN" | docker login git.trivk.dev -u "${{ github.repository_owner }}" --password-stdin
|
||||||
docker push "$IMAGE"
|
docker push "$IMAGE"
|
||||||
Reference in new issue
Block a user