Skip to content

Commit

Permalink
Build vendor artifact
Browse files Browse the repository at this point in the history
Closes: #11760

Signed-off-by: Kirill A. Korinsky <kirill@korins.ky>
  • Loading branch information
catap committed Apr 24, 2024
1 parent 299fcd5 commit e37e7af
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,34 @@ jobs:
with:
files: ./coverage.txt

vendor:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
-
name: Build vendor
run: |
go mod tidy
go mod vendor
mkdir -p bin/release
tar czf bin/release/docker-compose-vendor.tar.gz vendor
-
name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: compose
path: ./bin/release/*
if-no-files-found: error

release:
permissions:
contents: write # to create a release (ncipollo/release-action)
Expand Down

0 comments on commit e37e7af

Please sign in to comment.