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>
This commit is contained in:
Divyanshu Agrawal 2021-08-20 19:19:14 +05:30 committed by GitHub
parent 4bf4190336
commit d968d572fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 46 additions and 10 deletions

View file

@ -2,6 +2,8 @@ name: CI checks
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
lint:
@ -12,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- run: npm ci
- run: npm run lint
check-dist:
name: Check Distribution
runs-on: ubuntu-20.04
@ -30,7 +32,7 @@ jobs:
with:
bundle_file: ${{ env.BUNDLE_FILE }}
bundle_command: ${{ env.BUNDLE_COMMAND }}
check-inputs-outputs:
name: Check Input and Output enums
runs-on: ubuntu-20.04
@ -41,7 +43,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Verify Input and Output enums
uses: redhat-actions/common/action-io-generator@v1
with:

View file

@ -1,16 +1,19 @@
name: Test Login
name: Test Login and Pull
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # every day at midnight
env:
REGISTRY_USER: diagrawa
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:
login:
name: Log in to registry
podman-pull:
name: Log in and pull image with Podman
runs-on: ubuntu-20.04
steps:
@ -22,3 +25,23 @@ jobs:
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 }}

View file

@ -6,6 +6,8 @@ on:
pull_request:
paths:
- '**.md'
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
markdown-link-check: