podman-login/.github/workflows/example.yml
Divyanshu Agrawal d968d572fb
Set env var REGISTRY_AUTH_FILE to work with buildah (#6)
* Set env var REGISTRY_AUTH_FILE to work with buildah

Signed-off-by: divyansh42 <diagrawa@redhat.com>

* Add info level message

Signed-off-by: divyansh42 <diagrawa@redhat.com>

* Resolve reviews

Signed-off-by: divyansh42 <diagrawa@redhat.com>

* Reslve reviews

Signed-off-by: divyansh42 <diagrawa@redhat.com>
2021-08-20 19:19:14 +05:30

47 lines
1.2 KiB
YAML

name: Test Login and Pull
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # every day at midnight
env:
IMAGE_PATH: quay.io/redhat-github-actions/petclinic-private:latest
REGISTRY_USER: redhat-github-actions+redhat_actions_ci_puller
IMAGE_REGISTRY: quay.io
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
jobs:
podman-pull:
name: Log in and pull image with Podman
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Log in to quay.io
uses: ./
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
- name: Pull image with Podman
run: podman pull ${{ env.IMAGE_PATH }}
buildah-pull:
name: Log in and pull image with Buildah
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Log in to quay.io
uses: ./
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
- name: Pull image with Buildah
run: buildah pull ${{ env.IMAGE_PATH }}