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
|
||||
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
|
||||
# registry as git.ffaerber.duckdns.org/ffaerber/homepage:latest on every push to main.
|
||||
on:
|
||||
@@ -16,7 +16,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ci-runner
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -28,8 +28,8 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.ffaerber.duckdns.org
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
username: ffaerber
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
Reference in New Issue
Block a user