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
// Copyright (C) 2023 Omics Data Automation, Inc. - All Rights Reserved | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
package common | |
import ( | |
"context" | |
"log" | |
"dagger.io/dagger" | |
) | |
// PublishToAzure performs a Dockerfile build on the provided repo and pushes to the |
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
package common | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
"dagger.io/dagger" |
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
name: On push to develop | |
on: | |
push: | |
paths: | |
- '.env.test' | |
- '.**.js' | |
- '**.js' | |
- '**.json' | |
- '**.lock' | |
- 'public/**' |
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
package common | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"path/filepath" | |
"runtime" | |
"dagger.io/dagger" |
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
name: On push to develop | |
on: | |
push: | |
paths: | |
- '.env.test' | |
- '.**.js' | |
- '**.js' | |
- '**.json' | |
- '**.lock' | |
- 'public/**' |
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
package common | |
import ( | |
"context" | |
"log" | |
"dagger.io/dagger" | |
) | |
// PublishToAzure performs a Dockerfile build on the provided repo and pushes to the |
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
func main() { | |
ctx := context.Background() | |
if _, err := common.Build(ctx); err != nil { | |
log.Fatal(err) | |
} | |
if err := bumpMinorVersion(ctx); err != nil { | |
log.Fatal(err) | |
} |
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
// on-push-or-pull-request executes the Dagger CI/CD pipeline | |
// for every push or pull request to any branch within this repo. | |
// | |
// Usage: | |
// go run cicd/go-on-push-or-pull-request/main.go | |
// | |
// It performs the following steps: | |
// - yarn install | |
// - yarn test:unit | |
// - yarn lint |
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
~/src/github.com/grain-lang $ git clone [email protected]:grain-lang/grain | |
Cloning into 'grain'... | |
remote: Enumerating objects: 15460, done. | |
remote: Counting objects: 100% (935/935), done. | |
remote: Compressing objects: 100% (459/459), done. | |
remote: Total 15460 (delta 578), reused 730 (delta 451), pack-reused 14525 | |
Receiving objects: 100% (15460/15460), 6.32 MiB | 15.93 MiB/s, done. | |
Resolving deltas: 100% (10045/10045), done. | |
~/src/github.com/grain-lang $ cd grain | |
~/src/github.com/grain-lang/grain (main) $ ls |
NewerOlder