Skip to content

Commit

Permalink
feat: Bump all plugin dependencies to the latest version
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Aug 20, 2024
1 parent 9610151 commit 0777b93
Show file tree
Hide file tree
Showing 15 changed files with 2,352 additions and 1,117 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Manual release workflow is used for deploying documentation updates
# on the specified branch without making an official plugin release.
# on the specified branch without making an official plugin release.
name: Notify Integration Release (Manual)
on:
workflow_dispatch:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name: release
on:
workflow_dispatch:
push:
tags: 'v*'
tags: ['v*']

permissions:
contents: write
Expand All @@ -25,7 +25,7 @@ jobs:
container: kraftkit.sh/myself-full:latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -41,17 +41,17 @@ jobs:
- name: Describe plugin
id: plugin_describe
run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')"
run: echo "::set-output name=api_version::$(go run -tags 'containers_image_storage_stub,containers_image_openpgp' . describe | jq -r '.api_version')"

- name: Run GoReleaser
run: |
goreleaser build \
--config .goreleaser.yml \
--skip-validate
--skip=validate
goreleaser release \
--config .goreleaser.yml \
--clean --skip-validate \
--skip-sign
--clean --skip=validate \
--skip=sign
env:
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-plugin-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: init and build example
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Init
uses: hashicorp/packer-github-actions@master
Expand Down
11 changes: 9 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: 2
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
before:
hooks:
# We strongly recommend running tests to catch any regression before release.
Expand All @@ -21,6 +22,9 @@ builds:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
tags:
- containers_image_storage_stub
- containers_image_openpgp
goos:
- linux
goarch:
Expand All @@ -33,6 +37,9 @@ builds:
- -trimpath
ldflags:
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
tags:
- containers_image_storage_stub
- containers_image_openpgp
goos:
- linux
goarch:
Expand Down Expand Up @@ -63,4 +70,4 @@ release:
#- glob: ./docs.zip

changelog:
skip: true
disable: true
2 changes: 1 addition & 1 deletion .web-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Then, run [`packer init`](https://www.packer.io/docs/commands/init).
packer {
required_plugins {
unikraft = {
version = ">= 0.2.0"
version = ">= 0.2.1"
source = "github.com/unikraft/unikraft"
}
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Then, run [`packer init`](https://www.packer.io/docs/commands/init).
packer {
required_plugins {
unikraft = {
version = ">= 0.2.0"
version = ">= 0.2.1"
source = "github.com/unikraft/unikraft"
}
}
Expand All @@ -39,7 +39,7 @@ To install the plugin, please follow the Packer documentation on
### From Sources

If you prefer to build the plugin from sources, clone the GitHub repository
locally and run the command `go build` from the root
locally and run the command `go build -tags "containers_image_storage_stub,containers_image_openpgp"` from the root
directory. Upon successful compilation, a `packer-plugin-unikraft` plugin
binary file can be found in the root directory.
To install the compiled plugin, please follow the official Packer documentation
Expand Down
4 changes: 2 additions & 2 deletions builder/unikraft/builder_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package unikraft
import (
_ "embed"
"fmt"
"io/ioutil"
"io"
"os"
"os/exec"
"regexp"
Expand Down Expand Up @@ -40,7 +40,7 @@ func TestAccScaffoldingBuilder(t *testing.T) {
}
defer logs.Close()

logsBytes, err := ioutil.ReadAll(logs)
logsBytes, err := io.ReadAll(logs)
if err != nil {
return fmt.Errorf("Unable to read %s", logfile)
}
Expand Down
2 changes: 1 addition & 1 deletion builder/unikraft/driver_kraft.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (d *KraftDriver) Build(path, architecture, platform, target string) error {
c := Build{
Architecture: architecture,
Platform: platform,
Target: target,
TargetName: target,
NoCache: true,
NoUpdate: true,
}
Expand Down
Loading

0 comments on commit 0777b93

Please sign in to comment.