Update .forgejo/workflows/container.yaml
Signed-off-by: xengi <forgejo@xengi.de>
This commit is contained in:
parent
47d6a58b18
commit
088afe53a7
1 changed files with 5 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ enable-email-notifications: true
|
|||
|
||||
env:
|
||||
BUILDKITD_FLAGS: --oci-worker-no-process-sandbox
|
||||
REGISTRY_URL: coderberg.org
|
||||
REGISTRY_URL: git.sb20.xengi.de
|
||||
REGISTRY_IMAGE: ${{ env.REGISTRY_URL }}/${{ env.FORGEJO_REPOSITORY }}/archlinux-aur
|
||||
REGISTRY_TAG: latest
|
||||
|
||||
|
|
@ -29,10 +29,10 @@ jobs:
|
|||
- name: Build container
|
||||
run: |
|
||||
export CREATED=$(date -Iseconds)
|
||||
sed -i "s/%%CREATED%%/$CREATED/" docker/Dockerfile
|
||||
sed -i "s/%%COMMIT%%/$CI_BUILD_REF_NAME/" docker/Dockerfile
|
||||
sed -i "s/%%CREATED%%/$CREATED/" Containerfile
|
||||
sed -i "s/%%COMMIT%%/$CI_BUILD_REF_NAME/" Containerfile
|
||||
buildctl-daemonless.sh build \
|
||||
--frontend dockerfile.v0 \
|
||||
--local context=docker/ \
|
||||
--local dockerfile=docker/ \
|
||||
--local context=./ \
|
||||
--local dockerfile=./Containerfile \
|
||||
--output type=image,name=${{ env.REGISTRY_IMAGE }}:${{ env.REGISTRY_TAG }},push=true
|
||||
|
|
|
|||
Loading…
Reference in a new issue