Skip to content

Commit

Permalink
Rename task-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jun 18, 2024
1 parent a78146a commit 6ffe8a4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-buildah-remote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version-file: './remote-task-generator/go.mod'
go-version-file: './task-generator/go.mod'
- name: Check buildah remote
run: |
./hack/generate-buildah-remote.sh
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/go-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version-file: './remote-task-generator/go.mod'
go-version-file: './task-generator/go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
with:
working-directory: remote-task-generator
working-directory: task-generator
args: "--timeout=10m --build-tags='normal periodic'"
go:
name: Check sources
Expand All @@ -24,9 +24,9 @@ jobs:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version-file: './remote-task-generator/go.mod'
go-version-file: './task-generator/go.mod'
- name: Check go mod status
working-directory: remote-task-generator
working-directory: task-generator
run: |
go mod tidy
if [[ ! -z $(git status -s) ]]
Expand All @@ -36,9 +36,9 @@ jobs:
exit 1
fi
- name: Check format
working-directory: remote-task-generator
working-directory: task-generator
run: |
go fmt
go fmt ./**
if [[ ! -z $(git status -s) ]]
then
Expand All @@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version-file: './remote-task-generator/go.mod'
go-version-file: './task-generator/go.mod'
# https://github.com/securego/gosec/blob/12be14859bc7d4b956b71bef0b443694aa519d8a/README.md#integrating-with-code-scanning
- name: Run Gosec Security Scanner
uses: securego/gosec@master
Expand Down
8 changes: 4 additions & 4 deletions hack/generate-buildah-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

cd $SCRIPTDIR/../remote-task-generator
go build -o /tmp/generator ./main.go
cd $SCRIPTDIR/../task-generator
go build -o /tmp/remote-generator ./remote/main.go


/tmp/generator --buildah-task=$SCRIPTDIR/../task/buildah/0.1/buildah.yaml \
/tmp/remote-generator --buildah-task=$SCRIPTDIR/../task/buildah/0.1/buildah.yaml \
--remote-task=$SCRIPTDIR/../task/buildah-remote/0.1/buildah-remote.yaml
/tmp/generator --buildah-task=$SCRIPTDIR/../task/buildah-oci-ta/0.1/buildah-oci-ta.yaml \
/tmp/remote-generator --buildah-task=$SCRIPTDIR/../task/buildah-oci-ta/0.1/buildah-oci-ta.yaml \
--remote-task=$SCRIPTDIR/../task/buildah-remote-oci-ta/0.1/buildah-remote-oci-ta.yaml
2 changes: 1 addition & 1 deletion remote-task-generator/go.mod → task-generator/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/konflux-ci/build-definitions/remote-task-generator
module github.com/konflux-ci/build-definitions/task-generator

go 1.21

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6ffe8a4

Please sign in to comment.