push-to-registry/.github/workflows/verify-login-push.yml
Sam Koved 3916dcf329
Some checks failed
Check Case Normalization / Build and push image (push) Has been cancelled
Check Case Normalization / Build and push image-1 (push) Has been cancelled
CI checks / Run ESLint (push) Has been cancelled
CI checks / Check Distribution (push) Has been cancelled
CI checks / Check Input and Output enums (push) Has been cancelled
Push to GHCR / Build and push image (push) Has been cancelled
Push to GHCR / Build and push image-1 (push) Has been cancelled
Build and Push Manifest / Build and push manifest (push) Has been cancelled
Build and Push Manifest / Build and push manifest-1 (push) Has been cancelled
Multiple container CLI build tests / Build with docker after podman and push (latest: false) (push) Has been cancelled
Multiple container CLI build tests / Build with docker after podman and push (latest: true) (push) Has been cancelled
Multiple container CLI build tests / Build with docker after podman and push FQIN (latest: false) (push) Has been cancelled
Multiple container CLI build tests / Build with docker after podman and push FQIN (latest: true) (push) Has been cancelled
Multiple container CLI build tests / Build with docker only and push (latest: false) (push) Has been cancelled
Multiple container CLI build tests / Build with docker only and push (latest: true) (push) Has been cancelled
Multiple container CLI build tests / Build with docker only and push FQIN (latest: false) (push) Has been cancelled
Multiple container CLI build tests / Build with docker only and push FQIN (latest: true) (push) Has been cancelled
Multiple container CLI build tests / Build with podman after docker and push (latest: false) (push) Has been cancelled
Multiple container CLI build tests / Build with podman after docker and push (latest: true) (push) Has been cancelled
Multiple container CLI build tests / Build with podman after docker and push FQIN (latest: false) (push) Has been cancelled
Multiple container CLI build tests / Build with podman after docker and push FQIN (latest: true) (push) Has been cancelled
Multiple container CLI build tests / Build with podman only and push (latest: false) (push) Has been cancelled
Multiple container CLI build tests / Build with podman only and push (latest: true) (push) Has been cancelled
Multiple container CLI build tests / Build with podman only and push FQIN (latest: false) (push) Has been cancelled
Multiple container CLI build tests / Build with podman only and push FQIN (latest: true) (push) Has been cancelled
Push to Quay.io / Build and push image (push) Has been cancelled
Push to Quay.io / Build and push image-1 (push) Has been cancelled
Login and Push / Login and push image to Quay.io (push) Has been cancelled
Login and Push / Login and push image to Quay.io-1 (push) Has been cancelled
Update dependencies (#106)
update dependencies to the latest versions for Node.js 20

 Signed-off-by: skoved <skoved@redhat.com>
2026-03-30 10:17:29 -04:00

76 lines
2 KiB
YAML

# This workflow will perform a test whenever there
# is some change in code done to ensure that the changes
# are not buggy and we are getting the desired output.
name: Login and Push
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # every day at midnight
env:
IMAGE_REGISTRY: quay.io
IMAGE_NAMESPACE: redhat-github-actions
IMAGE_NAME: ptr-test
IMAGE_TAGS: v1 ${{ github.sha }}
jobs:
login-and-push:
name: Login and push image to Quay.io
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
install_latest: [ true, false ]
steps:
# Checkout push-to-registry action github repository
- name: Checkout Push to Registry action
uses: actions/checkout@v4
- name: Install latest podman
if: matrix.install_latest
run: |
bash .github/install_latest_podman.sh
- name: Create Dockerfile
run: |
cat > Dockerfile<<EOF
FROM busybox
RUN echo "hello world"
EOF
# Build image using Buildah action
- name: Build Image
id: build_image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
layers: false
tags: ${{ env.IMAGE_TAGS }}
dockerfiles: |
./Dockerfile
# Authenticate to container image registry to push the image
- name: Podman Login
uses: redhat-actions/podman-login@v1
with:
registry: quay.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
# Push the image to Quay.io (Image Registry)
- name: Push To Quay
uses: ./
id: push
with:
image: ${{ steps.build_image.outputs.image }}
tags: ${{ steps.build_image.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}
extra-args: |
--disable-content-trust
- name: Echo outputs
run: |
echo "${{ toJSON(steps.push.outputs) }}"