Merge pull request '@junior: CI: registry push fails with unauthorized' (#4) from ai/issue-3 into main
build-and-push / build-and-push (push) Successful in 18s
build-and-push / build-and-push (push) Successful in 18s
Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: build-and-push
|
name: build-and-push
|
||||||
run-name: "build-and-push · ${gitea.ref_name}"
|
run-name: "build-and-push · ${{ gitea.ref_name }}"
|
||||||
# Builds the homepage image and pushes it to this Gitea instance's container
|
# Builds the homepage image and pushes it to this Gitea instance's container
|
||||||
# registry as git.ffaerber.duckdns.org/ffaerber/homepage:latest on every push to main.
|
# registry as git.ffaerber.duckdns.org/ffaerber/homepage:latest on every push to main.
|
||||||
on:
|
on:
|
||||||
@@ -16,7 +16,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ci-runner
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -28,8 +28,8 @@ jobs:
|
|||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.ffaerber.duckdns.org
|
registry: git.ffaerber.duckdns.org
|
||||||
username: ${{ gitea.actor }}
|
username: ffaerber
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
Reference in New Issue
Block a user