File tree 8 files changed +517
-24
lines changed
8 files changed +517
-24
lines changed Original file line number Diff line number Diff line change 1
1
/bin
2
2
/azure
3
3
* -packr.go
4
+ /build /git_askpass.sh
Original file line number Diff line number Diff line change @@ -75,19 +75,7 @@ ifndef HAS_JSONPP
75
75
endif
76
76
77
77
publish : bin/porter$(FILE_EXT )
78
- # AZURE_STORAGE_CONNECTION_STRING will be used for auth in the following commands
79
- if [[ " $( PERMALINK) " == " latest" ]]; then \
80
- az storage blob upload-batch -d porter/mixins/$(MIXIN ) /$(VERSION ) -s $(BINDIR ) /$(VERSION ) ; \
81
- az storage blob upload-batch -d porter/mixins/$(MIXIN ) /$(PERMALINK ) -s $(BINDIR ) /$(VERSION ) ; \
82
- else \
83
- mv $(BINDIR ) /$(VERSION ) $(BINDIR ) /$(PERMALINK ) ; \
84
- az storage blob upload-batch -d porter/mixins/$(MIXIN ) /$(PERMALINK ) -s $(BINDIR ) /$(PERMALINK ) ; \
85
- fi
86
-
87
- # Generate the mixin feed
88
- az storage blob download -c porter -n atom.xml -f bin/atom.xml
89
- bin/porter mixins feed generate -d bin/mixins -f bin/atom.xml -t build/atom-template.xml
90
- az storage blob upload -c porter -n atom.xml -f bin/atom.xml
78
+ go run mage.go Publish $(MIXIN ) $(VERSION ) $(PERMALINK )
91
79
92
80
bin/porter$(FILE_EXT ) :
93
81
curl -fsSLo bin/porter$(FILE_EXT ) https://cdn.porter.sh/canary/porter-$(CLIENT_PLATFORM ) -$(CLIENT_ARCH )$(FILE_EXT )
Original file line number Diff line number Diff line change 7
7
branches :
8
8
include :
9
9
- refs/heads/main
10
- - refs/tags/*
10
+ - refs/tags/v *
11
11
12
12
pool :
13
13
vmImage : ' Ubuntu 16.04'
@@ -26,16 +26,15 @@ steps:
26
26
27
27
- script : |
28
28
make build test
29
- workingDirectory : ' $(System.DefaultWorkingDirectory)'
30
29
displayName : ' Unit Test'
31
30
32
31
- script : |
33
32
make xbuild-all
34
- workingDirectory : ' $(System.DefaultWorkingDirectory)'
35
33
displayName : ' Cross Compile'
36
34
37
35
- script : |
38
- AZURE_STORAGE_CONNECTION_STRING=$(AZURE_STORAGE_CONNECTION_STRING) make publish
39
- workingDirectory : ' $(System.DefaultWorkingDirectory)'
36
+ make publish
37
+ env :
38
+ GITHUB_TOKEN : $(GITHUB_TOKEN)
40
39
displayName : ' Publish'
41
40
condition : and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module get.porter.sh/mixin/arm
3
3
go 1.13
4
4
5
5
require (
6
- get.porter.sh/porter v0.22.1-beta.1
6
+ get.porter.sh/porter v0.37.2
7
7
github.com/Azure/azure-sdk-for-go v38.2.0+incompatible
8
8
github.com/Azure/go-autorest v12.2.0+incompatible
9
9
github.com/Azure/go-autorest/autorest v0.9.0
@@ -12,13 +12,14 @@ require (
12
12
github.com/Azure/go-autorest/autorest/validation v0.2.0 // indirect
13
13
github.com/Masterminds/goutils v1.1.0 // indirect
14
14
github.com/Masterminds/sprig v2.22.0+incompatible
15
- github.com/gobuffalo/packr/v2 v2.7.1
15
+ github.com/gobuffalo/envy v1.7.1 // indirect
16
+ github.com/gobuffalo/packr/v2 v2.8.0
16
17
github.com/huandu/xstrings v1.3.0 // indirect
17
18
github.com/kelseyhightower/envconfig v1.4.0
18
19
github.com/mitchellh/copystructure v1.0.0 // indirect
19
- github.com/pkg/errors v0.8 .1
20
- github.com/spf13/cobra v0 .0.5
21
- github.com/stretchr/testify v1.4.0
20
+ github.com/pkg/errors v0.9 .1
21
+ github.com/spf13/cobra v1 .0.0
22
+ github.com/stretchr/testify v1.6.1
22
23
gopkg.in/yaml.v2 v2.2.4
23
24
)
24
25
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ // +build ignore
2
+
3
+ package main
4
+
5
+ import (
6
+ "os"
7
+
8
+ "github.com/magefile/mage/mage"
9
+ )
10
+
11
+ // This file allows someone to run mage commands without mage installed
12
+ // by running `go run mage.go TARGET`.
13
+ // See https://magefile.org/zeroinstall/
14
+ func main () { os .Exit (mage .Main ()) }
Original file line number Diff line number Diff line change
1
+ // +build mage
2
+
3
+ package main
4
+
5
+ import (
6
+ // mage:import
7
+ "get.porter.sh/porter/mage/releases"
8
+ )
9
+
10
+ // We are migrating to mage, but for now keep using make as the main build script interface.
11
+
12
+ // Publish the cross-compiled binaries.
13
+ func Publish (mixin string , version string , permalink string ) {
14
+ releases .PrepareMixinForPublish (mixin , version , permalink )
15
+ releases .PublishMixin (mixin , version , permalink )
16
+ releases .PublishMixinFeed (mixin , version )
17
+ }
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ package arm
3
3
import (
4
4
"get.porter.sh/mixin/arm/pkg"
5
5
"get.porter.sh/porter/pkg/mixin"
6
+ "get.porter.sh/porter/pkg/pkgmgmt"
6
7
"get.porter.sh/porter/pkg/porter/version"
7
8
)
8
9
9
10
func (m * Mixin ) PrintVersion (opts version.Options ) error {
10
11
metadata := mixin.Metadata {
11
12
Name : "arm" ,
12
- VersionInfo : mixin .VersionInfo {
13
+ VersionInfo : pkgmgmt .VersionInfo {
13
14
Version : pkg .Version ,
14
15
Commit : pkg .Commit ,
15
16
Author : "Porter Authors" ,
You can’t perform that action at this time.
0 commit comments