Start of release process #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |