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
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v2
|
||||
- name: Build and Push
|
||||
# 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:
|
||||
registry: gitea.212.63.210.91.nip.io
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and Push (Native Docker)
|
||||
run: |
|
||||
# Build the image using the standard docker command
|
||||
docker build . --tag gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
|
||||
|
||||
# Push it
|
||||
docker push gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
|
||||
# Buildah requires a shell entrypoint to run multiple commands
|
||||
entrypoint: /bin/sh
|
||||
args: -c "
|
||||
buildah login -u $USERNAME -p $PASSWORD --tls-verify=false $REGISTRY &&
|
||||
|
||||
buildah build --tls-verify=false -t $REGISTRY/$IMAGE:$TAG . &&
|
||||
|
||||
buildah push --tls-verify=false $REGISTRY/$IMAGE:$TAG
|
||||
"
|
||||
Reference in New Issue
Block a user