Skip to content

Start of release process #50

Start of release process

Start of release process #50

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: ci-image-build
on:
pull_request:
types: [opened, edited, synchronize, reopened]
workflow_dispatch:
permissions: {}
jobs:
ci-image-build:
name: ci-image-build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: check if dockerfile changed
run: |
git diff --quiet HEAD main -- Dockerfile
dockerfile_changed=$?
git diff --quiet HEAD main -- kube-proxy-dockerfile-version
kube_proxy_version_changed=$?
if [[ ! $dockerfile_changed -eq $kube_proxy_version_changed ]]; then
echo "Either Dockefile changed or kube-proxy-dockerfile-version changed, but not both. Exiting."
exit
fi
- name: check if sourcevip files changed
run: |
git diff --quiet HEAD main -- sourcevip
dockerfile_changed=$?
git diff --quiet HEAD main -- sourcevip-version
source_vip_version_changed =$?
if [[ ! $dockerfile_changed -eq $source_vip_version_changed ]]; then
echo "Either Source-vip files changed or source-version changed, but not both. Exiting."
exit
fi
- name: lint
run: |
make lint
- name: make image
env:
REGISTRY: "ci"
run: |
make image