Skip to content

clydetealium/action-cst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

action-cst

What is this?

This is a mash up of two existing GHA marketplace actions

Why the duplication?

I wanted to have more control over how the action is maintained

What does it do?

Facilitates container-structure-test usage in your GitHub Action workflows.

Example usage

name: container scrutiny
on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main
jobs:
  cst:
    name: container regression
    runs-on: ubuntu-20.04
    env:
      tag: 'local/my-image:latest'
    steps:
    - name: Checkout
      uses: actions/checkout@v3
    - name: Set up QEMU
      uses: docker/setup-qemu-action@v2
    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v2
    - name: Build the image
      uses: docker/build-push-action@v3
      with: 
        context: .
        push: false
        tags: ${{ env.tag }}
        load: true
        build-args: 'ARCH=i386'
    - name: Run structure tests
      uses: clydetealium/action-cst@v1
      with:
        image: ${{ env.tag }}
        configFile: cst_config.yml

About

Github action for Container Structure Test

Resources

Stars

Watchers

Forks

Packages

No packages published