-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new functions in the lib package
* Deleted the datastructures.go file as it was not being used. * Completed the CheckSecrets and EnvironmentTest functions in basic-tests.go * Moved several functions to semantically more correct locations. Signed-off-by: VaibhavMalik4187 <[email protected]>
- Loading branch information
1 parent
a641cb1
commit 64ea53d
Showing
6 changed files
with
172 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package lib | ||
|
||
import ( | ||
"context" | ||
"os" | ||
|
||
"dagger.io/dagger" | ||
) | ||
|
||
// the platforms to build for and push in a multi-platform image | ||
var platforms = []dagger.Platform{ | ||
"linux/amd64", | ||
"linux/arm64", | ||
} | ||
|
||
// the system tests to run on the newly built image | ||
var TestNames = []string{ | ||
"unit", | ||
} | ||
|
||
// the container registry for the multi-platform image | ||
const imageRepo = "quay.io/matthiasb_1/synchronizer" | ||
|
||
func InitDagger(ctx context.Context) (*dagger.Client, *dagger.Directory, error) { | ||
client, err := dagger.Connect(ctx, dagger.WithLogOutput(os.Stdout)) | ||
if err != nil { | ||
return nil, nil, err | ||
} | ||
|
||
// get reference to the local project | ||
// git checkout is performed by the calling CI system (e.g. GitHub Actions) | ||
src := client.Host().Directory(".") | ||
return client, src, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters