Update .forgejo/workflows/test-registry.yaml
Some checks failed
build-image / build (push) Failing after 11s
Some checks failed
build-image / build (push) Failing after 11s
This commit is contained in:
parent
da0752b0de
commit
8c8dff3b70
1 changed files with 19 additions and 18 deletions
|
|
@ -1,27 +1,28 @@
|
||||||
|
name: build-image
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: node:22-bookworm
|
image: quay.io/buildah/stable
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
contents: read
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Debug
|
|
||||||
run:
|
- name: Build image
|
||||||
echo "${{ github.actor }}"
|
run: |
|
||||||
echo "${{ github.token }}"
|
buildah bud \
|
||||||
- name: Login
|
-t git.rangelovk.xyz/tues-test/proba:latest \
|
||||||
uses: docker/login-action@v3
|
-t git.rangelovk.xyz/tues-test/proba:${{ github.sha }} \
|
||||||
with:
|
.
|
||||||
registry: git.rangelovk.xyz
|
|
||||||
username: ${{ github.actor }}
|
- name: Push image
|
||||||
password: ${{ github.token }}
|
run: |
|
||||||
- uses: docker/build-push-action@v6
|
buildah push \
|
||||||
with:
|
--creds "rangelovk:${{ secrets.REGISTRY_TOKEN }}" \
|
||||||
push: true
|
git.rangelovk.xyz/tues-test/proba:latest
|
||||||
tags: git.rangelovk.xyz/${{ github.repository }}:latest
|
buildah push \
|
||||||
|
--creds "rangelovk:${{ secrets.REGISTRY_TOKEN }}" \
|
||||||
|
git.rangelovk.xyz/tues-test/proba:${{ github.sha }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue