Skip to content

Updated base image to v1.4 #21

Updated base image to v1.4

Updated base image to v1.4 #21

Workflow file for this run

name: Build, scan, and publish the image
on:
push:
branches:
- main
tags:
- v*
env:
LOCAL_IMAGE: kube-rollout-action:${{ github.sha }}
jobs:
test-bats:
name: Run Bats Tests
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Build docker image
run: docker build --pull --tag ${{ env.LOCAL_IMAGE }} ./
- name: Run bats tests
run: |
docker run --rm \
--volume ${PWD}/:/code/ \
--workdir /code/ \
--entrypoint "" \
${{ env.LOCAL_IMAGE }} \
./test/bats/bin/bats ./test/
test-shellcheck:
name: Run Shellcheck
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: ShellCheck
uses: ludeeus/action-shellcheck@2.0.0
with:
ignore_paths: >-
Dockerfile
test/lib/