-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into signingDocs
- Loading branch information
Showing
15 changed files
with
132 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ inputs.GOVERSION }}" | ||
go-version: ${{ inputs.goVersion }} | ||
- name: Configure Agent | ||
run: go run mage.go ConfigureAgent | ||
- name: Native Build | ||
|
@@ -49,7 +49,7 @@ jobs: | |
fetch-depth: 0 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ inputs.GOVERSION }}" | ||
go-version: ${{ inputs.goVersion }} | ||
- name: Configure Agent | ||
run: go run mage.go ConfigureAgent | ||
- name: Cross Compile | ||
|
@@ -68,7 +68,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ inputs.GOVERSION }}" | ||
go-version: ${{ inputs.goVersion }} | ||
- name: Configure Agent | ||
run: go run mage.go ConfigureAgent | ||
- name: Vet | ||
|
@@ -86,7 +86,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ inputs.GOVERSION }}" | ||
go-version: ${{ inputs.goVersion }} | ||
- name: Configure Agent | ||
run: go run mage.go ConfigureAgent | ||
- name: Unit Test | ||
|
@@ -110,7 +110,7 @@ jobs: | |
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ inputs.GOVERSION }}" | ||
go-version: ${{ inputs.goVersion }} | ||
- name: Download Cross-Compiled Porter Binaries | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -139,7 +139,7 @@ jobs: | |
fetch-depth: 0 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ inputs.GOVERSION }}" | ||
go-version: ${{ inputs.goVersion }} | ||
- name: Download Cross-Compiled Porter Binaries | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -151,7 +151,12 @@ jobs: | |
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
VERSION: ${{github.ref_name}} | ||
run: mage PublishPorter PublishMixins | ||
run: mage PublishPorter | ||
- name: Publish Porter Mixins | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.PUBLISH_TOKEN }}" | ||
VERSION: ${{github.ref_name}} | ||
run: mage PublishMixins | ||
publish-ghcr: | ||
env: | ||
DOCKER_REGISTRY: ${{inputs.registry}} | ||
|
@@ -175,7 +180,7 @@ jobs: | |
fetch-depth: 0 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ inputs.GOVERSION }}" | ||
go-version: ${{ inputs.goVersion }} | ||
- name: Download Cross-Compiled Porter Binaries | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -190,4 +195,5 @@ jobs: | |
username: "${{ github.actor }}" | ||
password: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Publish Docker Images to ${{inputs.registry}} | ||
run: PORTER_REGISTRY=${{inputs.registry}} mage PublishImages | ||
run: PORTER_REGISTRY=${{inputs.registry}} mage PublishImages PublishServerMultiArchImages | ||
|
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ jobs: | |
registry: ghcr.io/getporter | ||
shouldPublish: true | ||
skipTests: false | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -124,3 +124,33 @@ jobs: | |
PORTER_INTEG_FILE: uninstall_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
signing_test_integ: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- name: Docker Login | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Configure Agent | ||
run: go run mage.go build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: signing_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash |
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 |
---|---|---|
|
@@ -163,3 +163,33 @@ jobs: | |
PORTER_INTEG_FILE: uninstall_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
signing_test_integ: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- name: Docker Login | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Configure Agent | ||
run: go run mage.go build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: signing_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash |
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 |
---|---|---|
|
@@ -13,4 +13,5 @@ jobs: | |
with: | ||
registry: ghcr.io/getporter | ||
shouldPublish: true | ||
skipTests: false | ||
skipTests: false | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -26,6 +26,17 @@ jobs: | |
- name: Native Build | ||
run: go run mage.go build | ||
shell: bash | ||
- name: Check if all doc changes have been pushed | ||
run: | | ||
if [ "$(git status --porcelain docs/)" ]; | ||
then | ||
echo "There are changes to the documentation that have not been pushed! Please push the following files after build" | ||
git status -s docs/ | ||
exit 1 | ||
else | ||
echo "All documentation changes have been pushed" | ||
fi | ||
shell: bash | ||
- name: Publish Native Binaries | ||
uses: actions/[email protected] | ||
with: | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20 | ||
FROM golang:1.21 | ||
RUN apt-get update && apt-get -y install protobuf-compiler | ||
RUN go install google.golang.org/protobuf/cmd/[email protected] | ||
RUN go install google.golang.org/grpc/cmd/[email protected] | ||
|
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
Oops, something went wrong.