Update Github actions

This commit is contained in:
Alexey Pustovalov 2024-02-05 13:16:42 +09:00
parent 7c73d0f20c
commit 2a657029f1
2 changed files with 9 additions and 9 deletions

View File

@ -250,7 +250,7 @@ jobs:
--env PFLT_DOCKERCONFIG=/temp-authfile.json \ --env PFLT_DOCKERCONFIG=/temp-authfile.json \
-v $PFLT_ARTIFACTS:/artifacts \ -v $PFLT_ARTIFACTS:/artifacts \
-v $PFLT_DOCKERCONFIG:/temp-authfile.json:ro \ -v $PFLT_DOCKERCONFIG:/temp-authfile.json:ro \
quay.io/opdev/preflight:1.5.1 check container ${{ steps.build_image.outputs.image-with-tag }} --submit quay.io/opdev/preflight:stable check container ${{ steps.build_image.outputs.image-with-tag }} --submit
- name: Push to RedHat certification procedure - name: Push to RedHat certification procedure
id: push_to_registry_all_tags id: push_to_registry_all_tags
@ -353,7 +353,7 @@ jobs:
runs-on: [self-hosted, linux, ARM64] runs-on: [self-hosted, linux, ARM64]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Detect Build Base Image - name: Detect Build Base Image
id: build_base_image id: build_base_image
@ -364,7 +364,7 @@ jobs:
echo "build_base=$BUILD_BASE" >> $GITHUB_OUTPUT echo "build_base=$BUILD_BASE" >> $GITHUB_OUTPUT
- name: Genarate image name - name: Generate image name
id: image_name id: image_name
env: env:
REDHAT_CERTIFY_CREDENTIALS: ${{ secrets.REDHAT_CERTIFY_CREDENTIALS }} REDHAT_CERTIFY_CREDENTIALS: ${{ secrets.REDHAT_CERTIFY_CREDENTIALS }}
@ -390,7 +390,7 @@ jobs:
echo "password=$REGISTRY_PASSWORD" >> $GITHUB_OUTPUT echo "password=$REGISTRY_PASSWORD" >> $GITHUB_OUTPUT
- name: Log in to Quay.io - name: Log in to Quay.io
uses: redhat-actions/podman-login@v1.5 uses: redhat-actions/podman-login@v1.6
env: env:
LOGIN: ${{ steps.login_credentials.outputs.username }} LOGIN: ${{ steps.login_credentials.outputs.username }}
PASSWORD: ${{ steps.login_credentials.outputs.password }} PASSWORD: ${{ steps.login_credentials.outputs.password }}
@ -407,7 +407,7 @@ jobs:
- name: Generate tags - name: Generate tags
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_NAMESPACE }}/${{ steps.image_name.outputs.image_name }} images: ${{ env.REGISTRY }}/${{ env.REGISTRY_NAMESPACE }}/${{ steps.image_name.outputs.image_name }}
tags: | tags: |
@ -458,7 +458,7 @@ jobs:
--env PFLT_DOCKERCONFIG=/temp-authfile.json \ --env PFLT_DOCKERCONFIG=/temp-authfile.json \
-v $PFLT_ARTIFACTS:/artifacts \ -v $PFLT_ARTIFACTS:/artifacts \
-v $PFLT_DOCKERCONFIG:/temp-authfile.json:ro \ -v $PFLT_DOCKERCONFIG:/temp-authfile.json:ro \
quay.io/opdev/preflight:1.5.1 check container ${{ steps.build_image.outputs.image-with-tag }} --submit quay.io/opdev/preflight:stable check container ${{ steps.build_image.outputs.image-with-tag }} --submit
- name: Push to RedHat certification procedure - name: Push to RedHat certification procedure
id: push_to_registry_all_tags id: push_to_registry_all_tags

View File

@ -37,7 +37,7 @@ jobs:
is_default_branch: ${{ steps.branch_info.outputs.is_default_branch }} is_default_branch: ${{ steps.branch_info.outputs.is_default_branch }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
fetch-depth: 1 fetch-depth: 1
@ -99,7 +99,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
fetch-depth: 1 fetch-depth: 1
@ -199,7 +199,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Login to DockerHub - name: Login to DockerHub
run: | run: |