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:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: node:22-bookworm
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
image: quay.io/buildah/stable
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Debug
|
||||
run:
|
||||
echo "${{ github.actor }}"
|
||||
echo "${{ github.token }}"
|
||||
- name: Login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.rangelovk.xyz
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ github.token }}
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: git.rangelovk.xyz/${{ github.repository }}:latest
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
buildah bud \
|
||||
-t git.rangelovk.xyz/tues-test/proba:latest \
|
||||
-t git.rangelovk.xyz/tues-test/proba:${{ github.sha }} \
|
||||
.
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
buildah push \
|
||||
--creds "rangelovk:${{ secrets.REGISTRY_TOKEN }}" \
|
||||
git.rangelovk.xyz/tues-test/proba: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