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

fix: OR-1955 build pipeline #1189

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
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
39 changes: 2 additions & 37 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,44 +30,14 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Cache Paket
uses: actions/cache@v3
env:
cache-name: cache-paket
with:
path: packages
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('paket.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-

- name: Parse repository name
run: echo REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//") >> $GITHUB_ENV
shell: bash

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: ./.github/actions/setup-dotnet
with:
dotnet-version: ${{ secrets.VBR_DOTNET_VERSION }}

- name: .NET version
shell: bash
run: dotnet --info

- name: Clean
run: dotnet nuget locals all --clear

- name: Restore dotnet tools
shell: bash
run: |
dotnet tool restore

- name: Paket install
shell: bash
run: dotnet paket install

- name: Paket restore
shell: bash
run: dotnet paket restore
version: ${{ secrets.VBR_DOTNET_VERSION }}

- name: Cache NPM
uses: actions/cache@v3
Expand All @@ -86,11 +56,6 @@ jobs:
shell: bash
run: npm install --legacy-peer-deps

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ secrets.VBR_DOTNET_VERSION }}

- name: Containerize
shell: bash
run: CI_BUILD_NUMBER=$SEMVER ./build.sh ${{ inputs.build-target }}
Expand Down
Loading