Compare commits

..

No commits in common. "main" and "v2.12" have entirely different histories.
main ... v2.12

15 changed files with 604 additions and 492 deletions

View file

@ -16,7 +16,7 @@ env:
jobs: jobs:
build: build:
name: Build image using Buildah name: Build image using Buildah
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -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@v4 uses: actions/checkout@v3
with: with:
path: "buildah-build" path: "buildah-build"

View file

@ -6,21 +6,21 @@ on:
jobs: jobs:
lint: lint:
name: Run ESLint name: Run ESLint
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v3
- run: npm ci - run: npm ci
- run: npm run lint - run: npm run lint
check-dist: check-dist:
name: Check Distribution name: Check Distribution
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
env: env:
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@v4 - uses: actions/checkout@v3
- name: Install - name: Install
run: npm ci run: npm ci
@ -33,11 +33,11 @@ jobs:
check-inputs-outputs: check-inputs-outputs:
name: Check Input and Output enums name: Check Input and Output enums
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
env: env:
IO_FILE: ./src/generated/inputs-outputs.ts IO_FILE: ./src/generated/inputs-outputs.ts
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci

View file

@ -15,7 +15,7 @@ env:
jobs: jobs:
build: build:
name: Build image using Buildah name: Build image using Buildah
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -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@v4 uses: actions/checkout@v3
with: with:
path: "buildah-build" path: "buildah-build"

View file

@ -12,7 +12,7 @@ on:
jobs: jobs:
build-containerfile: build-containerfile:
name: Build image with Containerfile name: Build image with Containerfile
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -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@v4 uses: actions/checkout@v3
- name: Docker Metadata - name: Docker Metadata
id: docker-metadata id: docker-metadata
@ -88,7 +88,7 @@ jobs:
build-scratch: build-scratch:
name: Build image without Containerfile name: Build image without Containerfile
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -103,7 +103,7 @@ jobs:
# Checkout buildah action github repository # Checkout buildah action github repository
- name: Checkout Buildah action - name: Checkout Buildah action
uses: actions/checkout@v4 uses: actions/checkout@v3
- name: Docker Metadata - name: Docker Metadata
id: docker-metadata id: docker-metadata
@ -128,7 +128,7 @@ jobs:
# Checkout spring-petclinic github repository # Checkout spring-petclinic github repository
- name: Checkout spring-petclinic project - name: Checkout spring-petclinic project
uses: actions/checkout@v4 uses: actions/checkout@v3
with: with:
repository: "spring-projects/spring-petclinic" repository: "spring-projects/spring-petclinic"
path: ${{ env.PROJECT_DIR }} path: ${{ env.PROJECT_DIR }}

View file

@ -12,9 +12,9 @@ on:
jobs: jobs:
markdown-link-check: markdown-link-check:
name: Check links in markdown name: Check links in markdown
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v4 - 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

View file

@ -16,7 +16,7 @@ jobs:
name: Build multi-architecture image using Containerfile name: Build multi-architecture image using Containerfile
env: env:
IMAGE_NAME: hello-world-multiarch IMAGE_NAME: hello-world-multiarch
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -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@v4 uses: actions/checkout@v3
with: with:
path: "buildah-build" path: "buildah-build"
@ -84,7 +84,7 @@ jobs:
name: Build multi-platform image using Containerfile name: Build multi-platform image using Containerfile
env: env:
IMAGE_NAME: hello-world-multiplatform IMAGE_NAME: hello-world-multiplatform
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -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@v4 uses: actions/checkout@v3
with: with:
path: "buildah-build" path: "buildah-build"
@ -151,7 +151,7 @@ jobs:
name: Build multi-architecture image from scratch name: Build multi-architecture image from scratch
env: env:
IMAGE_NAME: spring-petclinic-multiarch IMAGE_NAME: spring-petclinic-multiarch
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -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@v4 uses: actions/checkout@v3
with: with:
path: "buildah-build" path: "buildah-build"
@ -177,7 +177,7 @@ jobs:
# Checkout spring-petclinic github repository # Checkout spring-petclinic github repository
- name: Checkout spring-petclinic project - name: Checkout spring-petclinic project
uses: actions/checkout@v4 uses: actions/checkout@v3
with: with:
repository: "spring-projects/spring-petclinic" repository: "spring-projects/spring-petclinic"
path: ${{ env.PROJECT_DIR }} path: ${{ env.PROJECT_DIR }}

View file

@ -17,7 +17,7 @@ env:
jobs: jobs:
build: build:
name: Build image using Buildah name: Build image using Buildah
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -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@v4 uses: actions/checkout@v3
with: with:
path: "buildah-build" path: "buildah-build"
@ -38,7 +38,7 @@ jobs:
# Checkout spring-petclinic github repository # Checkout spring-petclinic github repository
- name: Checkout spring-petclinic project - name: Checkout spring-petclinic project
uses: actions/checkout@v4 uses: actions/checkout@v3
with: with:
repository: "spring-projects/spring-petclinic" repository: "spring-projects/spring-petclinic"
path: ${{ env.PROJECT_DIR }} path: ${{ env.PROJECT_DIR }}

View file

@ -1,24 +1,24 @@
name: Vulnerability Scan with CRDA name: Vulnerability Scan with CRDA
on: on:
# push: push:
workflow_dispatch: workflow_dispatch:
# pull_request_target: pull_request_target:
# types: [ assigned, opened, synchronize, reopened, labeled, edited ] types: [ assigned, opened, synchronize, reopened, labeled, edited ]
# schedule: schedule:
# - cron: '0 0 * * *' # every day at midnight - cron: '0 0 * * *' # every day at midnight
jobs: jobs:
crda-scan: crda-scan:
runs-on: ubuntu-22.04 runs-on: ubuntu-20.04
name: Scan project vulnerability with CRDA name: Scan project vulnerability with CRDA
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v2
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '20' node-version: '16'
cache: 'npm' cache: 'npm'
- name: Install CRDA - name: Install CRDA

View file

@ -1,8 +1,5 @@
# buildah-build Changelog # buildah-build Changelog
## v2.13
- Update action to run on Node20. https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
## v2.12 ## v2.12
- Forcibly remove existing manifest before creating a new one. [#103](https://github.com/redhat-actions/buildah-build/pull/103) - Forcibly remove existing manifest before creating a new one. [#103](https://github.com/redhat-actions/buildah-build/pull/103)

View file

@ -126,7 +126,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v3
- name: Buildah Action - name: Buildah Action
uses: redhat-actions/buildah-build@v2 uses: redhat-actions/buildah-build@v2
@ -166,7 +166,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v3
- run: mvn package - run: mvn package

View file

@ -90,5 +90,5 @@ outputs:
image-with-tag: image-with-tag:
description: 'Name of the image tagged with the first tag present' description: 'Name of the image tagged with the first tag present'
runs: runs:
using: 'node20' using: 'node16'
main: 'dist/index.js' main: 'dist/index.js'

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

991
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
{ {
"name": "buildah-build", "name": "buildah-build",
"version": "3.0", "version": "2.0",
"engines": { "engines": {
"node": "20" "node": "16"
}, },
"description": "Action for building OCI-compatible images using buildah", "description": "Action for building OCI-compatible images using buildah",
"repository": { "repository": {
@ -21,21 +21,21 @@
"author": "Red Hat", "author": "Red Hat",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "1.10.1", "@actions/core": "1.10.0",
"@actions/exec": "1.1.1", "@actions/exec": "1.1.1",
"@actions/io": "1.1.3", "@actions/io": "1.1.2",
"ini": "4.1.1" "ini": "3.0.1"
}, },
"devDependencies": { "devDependencies": {
"@redhat-actions/action-io-generator": "1.5.0", "@redhat-actions/action-io-generator": "1.5.0",
"@redhat-actions/eslint-config": "1.3.2", "@redhat-actions/eslint-config": "1.3.2",
"@redhat-actions/tsconfig": "1.2.0", "@redhat-actions/tsconfig": "1.2.0",
"@types/ini": "1.3.31", "@types/ini": "1.3.31",
"@types/node": "^20.0", "@types/node": "16.18.7",
"@typescript-eslint/eslint-plugin": "6.7.3", "@typescript-eslint/eslint-plugin": "5.46.0",
"@typescript-eslint/parser": "6.7.3", "@typescript-eslint/parser": "5.46.0",
"@vercel/ncc": "0.38.0", "@vercel/ncc": "0.34.0",
"eslint": "8.50.0", "eslint": "8.29.0",
"typescript": "5.2.2" "typescript": "4.9.4"
} }
} }