Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide quick way to rerun with different Dolt versions. #178

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---
name: "CI"
on: # yamllint disable
- "push"
- "pull_request"
pull_request: # yamllint disable-line rule:empty-values
push: # yamllint disable-line rule:empty-values
workflow_dispatch: # yamllint disable-line rule:empty-values
inputs:
dolt-version:
description: "Targeted Dolt Version"
required: true
default: "v0.35.5"

env:
PLUGIN_NAME: "nautobot-dolt"
Expand Down Expand Up @@ -103,6 +109,9 @@ jobs:
PYTHON_VER=${{ matrix.python-version }}
- name: "List images"
run: "docker image ls"
- name: "Identify Dolt Version"
run: "echo ::set-output name=dolt_version::$( if [ -z \"${{ github.event.inputs.dolt-version }}\" ]; then echo \"v0.35.5\"; else echo \"${{ github.event.inputs.dolt-version }}\"; fi )"
id: "doltversion"
- name: "Build"
uses: "docker/build-push-action@v2"
with:
Expand All @@ -114,6 +123,8 @@ jobs:
file: "./development/Dockerfile-dolt"
cache-from: "type=gha,scope=dolt"
cache-to: "type=gha,scope=dolt"
build-args: |
DOLT_RELEASE=${{ steps.doltversion.outputs.dolt_version }}
- name: "Display images"
run: "docker image ls"
- name: "Copy credentials"
Expand Down Expand Up @@ -156,6 +167,9 @@ jobs:
PYTHON_VER=${{ matrix.python-version }}
- name: "List images"
run: "docker image ls"
- name: "Identify Dolt Version"
run: "echo ::set-output name=dolt_version::$( if [ -z \"${{ github.event.inputs.dolt-version }}\" ]; then echo \"v0.35.5\"; else echo \"${{ github.event.inputs.dolt-version }}\"; fi )"
id: "doltversion"
- name: "Build"
uses: "docker/build-push-action@v2"
with:
Expand All @@ -167,6 +181,8 @@ jobs:
file: "./development/Dockerfile-dolt"
cache-from: "type=gha,scope=dolt"
cache-to: "type=gha,scope=dolt"
build-args: |
DOLT_RELEASE=${{ steps.doltversion.outputs.dolt_version }}
- name: "Display images"
run: "docker image ls"
- name: "Copy credentials"
Expand Down