Change to buildah
Some checks failed
Publish Builder Image / build-and-push (push) Has been cancelled
Some checks failed
Publish Builder Image / build-and-push (push) Has been cancelled
This commit is contained in:
@ -8,17 +8,24 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Login to Gitea Registry
|
- name: Build and Push
|
||||||
uses: docker/login-action@v2
|
# Use the official stable image directly
|
||||||
|
uses: docker://quay.io/buildah/stable
|
||||||
|
env:
|
||||||
|
# Use the Token with write:package scope
|
||||||
|
USERNAME: ${{ gitea.actor }}
|
||||||
|
PASSWORD: ${{ secrets.USER_PACKAGE_PASSWORD }}
|
||||||
|
REGISTRY: gitea.212.63.210.91.nip.io
|
||||||
|
# Image name format: owner/image
|
||||||
|
IMAGE: ${{ gitea.repository }}/godot-builder
|
||||||
|
TAG: ${{ gitea.sha }}
|
||||||
with:
|
with:
|
||||||
registry: gitea.212.63.210.91.nip.io
|
# Buildah requires a shell entrypoint to run multiple commands
|
||||||
username: ${{ gitea.actor }}
|
entrypoint: /bin/sh
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
args: -c "
|
||||||
|
buildah login -u $USERNAME -p $PASSWORD --tls-verify=false $REGISTRY &&
|
||||||
- name: Build and Push (Native Docker)
|
|
||||||
run: |
|
buildah build --tls-verify=false -t $REGISTRY/$IMAGE:$TAG . &&
|
||||||
# Build the image using the standard docker command
|
|
||||||
docker build . --tag gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
|
buildah push --tls-verify=false $REGISTRY/$IMAGE:$TAG
|
||||||
|
"
|
||||||
# Push it
|
|
||||||
docker push gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
|
|
||||||
Reference in New Issue
Block a user