Try docker only
Some checks failed
build-ublue-custom / Build and push image (push) Failing after 1m10s
Some checks failed
build-ublue-custom / Build and push image (push) Failing after 1m10s
This commit is contained in:
parent
974adf0aa8
commit
78bca55e6c
1 changed files with 8 additions and 39 deletions
|
@ -29,9 +29,6 @@ jobs:
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install buildah
|
|
||||||
run: apt update && apt install -y buildah
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://github.com/actions/checkout@v3
|
uses: https://github.com/actions/checkout@v3
|
||||||
|
|
||||||
|
@ -88,29 +85,6 @@ jobs:
|
||||||
org.opencontainers.image.description=${{ env.MY_IMAGE_DESC }}
|
org.opencontainers.image.description=${{ env.MY_IMAGE_DESC }}
|
||||||
org.opencontainers.image.title=${{ env.MY_IMAGE_NAME }}
|
org.opencontainers.image.title=${{ env.MY_IMAGE_NAME }}
|
||||||
|
|
||||||
# Build image using Buildah action
|
|
||||||
- name: Build Image
|
|
||||||
id: build_image
|
|
||||||
uses: https://github.com/redhat-actions/buildah-build@v2
|
|
||||||
with:
|
|
||||||
containerfiles: |
|
|
||||||
./Containerfile
|
|
||||||
# Postfix image name with -custom to make it a little more descriptive
|
|
||||||
# Syntax: https://docs.github.com/en/actions/learn-github-actions/expressions#format
|
|
||||||
image: ${{ env.MY_IMAGE_NAME }}
|
|
||||||
tags: |
|
|
||||||
${{ steps.generate-tags.outputs.alias_tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
oci: false
|
|
||||||
|
|
||||||
# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
|
|
||||||
# https://github.com/macbre/push-to-ghcr/issues/12
|
|
||||||
- name: Lowercase Registry
|
|
||||||
id: registry_case
|
|
||||||
uses: https://github.com/ASzc/change-string-case-action@v6
|
|
||||||
with:
|
|
||||||
string: ${{ env.IMAGE_REGISTRY }}
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: https://github.com/docker/login-action@v3
|
uses: https://github.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
@ -118,20 +92,15 @@ jobs:
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
|
||||||
- name: Push Image to GHCR
|
# Build and push image using Docker Build and Push action
|
||||||
uses: https://github.com/redhat-actions/push-to-registry@v2
|
- name: Build and Push Image
|
||||||
id: push
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
env:
|
|
||||||
REGISTRY_USER: ${{ secrets.USERNAME }}
|
|
||||||
REGISTRY_PASSWORD: ${{ secrets.PASSWORD }}
|
|
||||||
with:
|
with:
|
||||||
image: ${{ steps.build_image.outputs.image }}
|
context: .
|
||||||
tags: ${{ steps.build_image.outputs.tags }}
|
file: ./Containerfile
|
||||||
registry: ${{ steps.registry_case.outputs.lowercase }}
|
push: true
|
||||||
username: ${{ env.REGISTRY_USER }}
|
tags: ${{ steps.generate-tags.outputs.alias_tags }}
|
||||||
password: ${{ env.REGISTRY_PASSWORD }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
extra-args: |
|
|
||||||
--disable-content-trust
|
|
||||||
|
|
||||||
# This section is optional and only needs to be enabled if you plan on distributing
|
# This section is optional and only needs to be enabled if you plan on distributing
|
||||||
# your project for others to consume. You will need to create a public and private key
|
# your project for others to consume. You will need to create a public and private key
|
||||||
|
|
Loading…
Reference in a new issue