mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 17:11:23 +00:00
chore: update all actions used in workflows
This commit is contained in:
parent
3778c0d006
commit
605b8c67b5
8 changed files with 37 additions and 99 deletions
2
.github/workflows/check-lowercase.yaml
vendored
2
.github/workflows/check-lowercase.yaml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
|
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ jobs:
|
||||||
BUNDLE_FILE: "dist/index.js"
|
BUNDLE_FILE: "dist/index.js"
|
||||||
BUNDLE_COMMAND: "npm run bundle"
|
BUNDLE_COMMAND: "npm run bundle"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
@ -37,7 +37,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
IO_FILE: ./src/generated/inputs-outputs.ts
|
IO_FILE: ./src/generated/inputs-outputs.ts
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
2
.github/workflows/containerfile_build.yml
vendored
2
.github/workflows/containerfile_build.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
|
41
.github/workflows/docker_metadata_action.yml
vendored
41
.github/workflows/docker_metadata_action.yml
vendored
|
@ -1,7 +1,7 @@
|
||||||
# This workflow will perform a test whenever there
|
# This workflow will perform a test whenever there
|
||||||
# is some change in code done to ensure that the changes
|
# is some change in code done to ensure that the changes
|
||||||
# are not buggy and we are getting the desired output.
|
# are not buggy and we are getting the desired output.
|
||||||
name: Build with docker/metadata-action@v2
|
name: Build with docker/metadata-action
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -25,11 +25,11 @@ jobs:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Docker Metadata
|
- name: Docker Metadata
|
||||||
id: docker-metadata
|
id: docker-metadata
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ env.IMAGE_NAME }}
|
${{ env.IMAGE_NAME }}
|
||||||
|
@ -103,11 +103,11 @@ jobs:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Docker Metadata
|
- name: Docker Metadata
|
||||||
id: docker-metadata
|
id: docker-metadata
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ env.IMAGE_NAME }}
|
${{ env.IMAGE_NAME }}
|
||||||
|
@ -128,31 +128,18 @@ jobs:
|
||||||
|
|
||||||
# Checkout spring-petclinic github repository
|
# Checkout spring-petclinic github repository
|
||||||
- name: Checkout spring-petclinic project
|
- name: Checkout spring-petclinic project
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: "spring-projects/spring-petclinic"
|
repository: "spring-projects/spring-petclinic"
|
||||||
path: ${{ env.PROJECT_DIR }}
|
path: ${{ env.PROJECT_DIR }}
|
||||||
|
|
||||||
# If none of these files has changed, we assume that the contents of
|
|
||||||
# .m2/repository can be fetched from the cache.
|
|
||||||
- name: Hash Maven files
|
|
||||||
working-directory: ${{ env.PROJECT_DIR }}
|
|
||||||
run: |
|
|
||||||
echo "MVN_HASH=${{ hashFiles('**/pom.xml', '.mvn/**/*', 'mvnw*') }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
# Download the m2 repository from the cache to speed up the build.
|
|
||||||
- name: Check for Maven cache
|
|
||||||
id: check-mvn-cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.MVN_REPO_DIR }}
|
|
||||||
key: ${{ env.MVN_HASH }}
|
|
||||||
|
|
||||||
# Setup java.
|
# Setup java.
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
distribution: 'temurin'
|
||||||
|
java-version: '17'
|
||||||
|
cache: 'maven'
|
||||||
|
|
||||||
# Run maven to build the project
|
# Run maven to build the project
|
||||||
- name: Maven
|
- name: Maven
|
||||||
|
@ -160,14 +147,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mvn package -ntp -B
|
mvn package -ntp -B
|
||||||
|
|
||||||
# If there was no cache hit above, store the output into the cache now.
|
|
||||||
- name: Save Maven repo into cache
|
|
||||||
if: ${{ steps.check-mvn-cache.outputs.cache-hit }} != 'true'
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.MVN_REPO_DIR }}
|
|
||||||
key: ${{ env.MVN_HASH }}
|
|
||||||
|
|
||||||
# Build image using Buildah action
|
# Build image using Buildah action
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
id: build_image
|
id: build_image
|
||||||
|
|
2
.github/workflows/link_check.yml
vendored
2
.github/workflows/link_check.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
name: Check links in markdown
|
name: Check links in markdown
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||||
with:
|
with:
|
||||||
use-verbose-mode: true
|
use-verbose-mode: true
|
||||||
|
|
39
.github/workflows/multiarch.yml
vendored
39
.github/workflows/multiarch.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ jobs:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cat > Containerfile<<EOF
|
cat > Containerfile<<EOF
|
||||||
|
|
||||||
FROM docker.io/alpine:3.14
|
FROM docker.io/alpine:3.16
|
||||||
|
|
||||||
RUN echo "hello world"
|
RUN echo "hello world"
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ jobs:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
@ -177,31 +177,18 @@ jobs:
|
||||||
|
|
||||||
# Checkout spring-petclinic github repository
|
# Checkout spring-petclinic github repository
|
||||||
- name: Checkout spring-petclinic project
|
- name: Checkout spring-petclinic project
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: "spring-projects/spring-petclinic"
|
repository: "spring-projects/spring-petclinic"
|
||||||
path: ${{ env.PROJECT_DIR }}
|
path: ${{ env.PROJECT_DIR }}
|
||||||
|
|
||||||
# If none of these files has changed, we assume that the contents of
|
|
||||||
# .m2/repository can be fetched from the cache.
|
|
||||||
- name: Hash Maven files
|
|
||||||
working-directory: ${{ env.PROJECT_DIR }}
|
|
||||||
run: |
|
|
||||||
echo "MVN_HASH=${{ hashFiles('**/pom.xml', '.mvn/**/*', 'mvnw*') }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
# Download the m2 repository from the cache to speed up the build.
|
|
||||||
- name: Check for Maven cache
|
|
||||||
id: check-mvn-cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.MVN_REPO_DIR }}
|
|
||||||
key: ${{ env.MVN_HASH }}
|
|
||||||
|
|
||||||
# Setup java.
|
# Setup java.
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
distribution: 'temurin'
|
||||||
|
java-version: '17'
|
||||||
|
cache: 'maven'
|
||||||
|
|
||||||
# Run maven to build the project
|
# Run maven to build the project
|
||||||
- name: Maven
|
- name: Maven
|
||||||
|
@ -209,14 +196,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mvn package -ntp -B
|
mvn package -ntp -B
|
||||||
|
|
||||||
# If there was no cache hit above, store the output into the cache now.
|
|
||||||
- name: Save Maven repo into cache
|
|
||||||
if: ${{ steps.check-mvn-cache.outputs.cache-hit }} != 'true'
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.MVN_REPO_DIR }}
|
|
||||||
key: ${{ env.MVN_HASH }}
|
|
||||||
|
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
id: build_image_multiarch
|
id: build_image_multiarch
|
||||||
uses: ./buildah-build/
|
uses: ./buildah-build/
|
||||||
|
|
33
.github/workflows/scratch_build.yml
vendored
33
.github/workflows/scratch_build.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
@ -38,31 +38,18 @@ jobs:
|
||||||
|
|
||||||
# Checkout spring-petclinic github repository
|
# Checkout spring-petclinic github repository
|
||||||
- name: Checkout spring-petclinic project
|
- name: Checkout spring-petclinic project
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: "spring-projects/spring-petclinic"
|
repository: "spring-projects/spring-petclinic"
|
||||||
path: ${{ env.PROJECT_DIR }}
|
path: ${{ env.PROJECT_DIR }}
|
||||||
|
|
||||||
# If none of these files has changed, we assume that the contents of
|
|
||||||
# .m2/repository can be fetched from the cache.
|
|
||||||
- name: Hash Maven files
|
|
||||||
working-directory: ${{ env.PROJECT_DIR }}
|
|
||||||
run: |
|
|
||||||
echo "MVN_HASH=${{ hashFiles('**/pom.xml', '.mvn/**/*', 'mvnw*') }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
# Download the m2 repository from the cache to speed up the build.
|
|
||||||
- name: Check for Maven cache
|
|
||||||
id: check-mvn-cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.MVN_REPO_DIR }}
|
|
||||||
key: ${{ env.MVN_HASH }}
|
|
||||||
|
|
||||||
# Setup java.
|
# Setup java.
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
distribution: 'temurin'
|
||||||
|
java-version: '17'
|
||||||
|
cache: 'maven'
|
||||||
|
|
||||||
# Run maven to build the project
|
# Run maven to build the project
|
||||||
- name: Maven
|
- name: Maven
|
||||||
|
@ -70,14 +57,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mvn package -ntp -B
|
mvn package -ntp -B
|
||||||
|
|
||||||
# If there was no cache hit above, store the output into the cache now.
|
|
||||||
- name: Save Maven repo into cache
|
|
||||||
if: ${{ steps.check-mvn-cache.outputs.cache-hit }} != 'true'
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.MVN_REPO_DIR }}
|
|
||||||
key: ${{ env.MVN_HASH }}
|
|
||||||
|
|
||||||
# Build image using Buildah action
|
# Build image using Buildah action
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
id: build_image
|
id: build_image
|
||||||
|
|
5
.github/workflows/security_scan.yml
vendored
5
.github/workflows/security_scan.yml
vendored
|
@ -16,9 +16,10 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '16'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install CRDA
|
- name: Install CRDA
|
||||||
uses: redhat-actions/openshift-tools-installer@v1
|
uses: redhat-actions/openshift-tools-installer@v1
|
||||||
|
|
Loading…
Reference in a new issue