-
Notifications
You must be signed in to change notification settings - Fork 746
Remove MAKE_IN_DOCKER, and associated changes #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
dd2a01e
2e59fcb
c68457c
6ad7760
374d776
cbb804d
77471cc
a0cb1bd
6ac963e
1f6e312
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,68 +12,54 @@ on: | |
| - "release-v*" | ||
| paths-ignore: | ||
| - "**/*.png" | ||
| env: | ||
| GO_VERSION: 1.18.2 | ||
| ENVOY_GATEWAY_DEV_IMAGE: envoyproxy/gateway-dev | ||
| ENVOY_GATEWAY_DEV_TAG: latest | ||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: ./tools/github-actions/setup-deps | ||
|
|
||
| # lint | ||
| - run: make lint-deps | ||
|
arkodg marked this conversation as resolved.
Outdated
|
||
| - run: make -k lint | ||
|
|
||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out code | ||
| uses: actions/checkout@v3 | ||
| - name: Run whitenoise lint | ||
| run: | | ||
| MAKE_IN_DOCKER=1 make lint.whitenoise | ||
| - name: Run yamllint | ||
| run: | | ||
| MAKE_IN_DOCKER=1 make lint.yamllint | ||
| - name: Run codespell | ||
| run: | | ||
| MAKE_IN_DOCKER=1 make lint.codespell | ||
| - name: Run golangci-lint | ||
| run: | | ||
| MAKE_IN_DOCKER=1 make lint.golint | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: ${{ env.GO_VERSION }} | ||
| - name: Build Binaries | ||
| run: make build-multiarch | ||
| - name: Test and report coverage | ||
| run: make go.test.coverage | ||
| - uses: actions/checkout@v3 | ||
| - uses: ./tools/github-actions/setup-deps | ||
|
|
||
| # build | ||
| - run: make build-multiarch | ||
|
|
||
| # test | ||
| - run: make go.test.coverage | ||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v2 | ||
| with: | ||
| fail_ci_if_error: true | ||
| files: ./coverage.xml | ||
| name: codecov-envoy-gateway | ||
| verbose: true | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
| - name: Build Docker Image | ||
| uses: docker/build-push-action@v3 | ||
| with: | ||
| file: ./tools/docker/envoy-gateway/Dockerfile | ||
| context: bin | ||
| platforms: linux/amd64 | ||
| tags: ${{ env.ENVOY_GATEWAY_DEV_IMAGE }}:${{ github.sha }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
|
|
||
| # push | ||
| - name: Login to DockerHub | ||
| if: github.event_name == 'push' | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
| - name: Push to envoyproxy/gateway-dev | ||
| - run: make push-multiarch | ||
| if: github.event_name == 'push' | ||
| - name: Push to :latest | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
| # TODO(lukeshu): Switch this to be a Make target | ||
| uses: docker/build-push-action@v3 | ||
| with: | ||
| file: ./tools/docker/envoy-gateway/Dockerfile | ||
| context: bin | ||
| platforms: linux/amd64,linux/arm64 | ||
| push: true | ||
| tags: ${{ env.ENVOY_GATEWAY_DEV_IMAGE }}:${{ github.sha }}, ${{ env.ENVOY_GATEWAY_DEV_IMAGE }}:${{ env.ENVOY_GATEWAY_DEV_TAG }} | ||
| tags: docker.io/envoyproxy/gateway-dev:latest | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we also want to tag and push with the SHA of the commit, can you please revert this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The sha is already pushed by the earlier
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah thanks for pointing it out.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO, since everything should be doable without GHA, the better solution would be to go the other direction and move the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would prefer if this GHA remains the way it is, since the current changes doesn't improve the existing workflow and keep things consistent
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FTR, I tend to strongly believe that it should be a requirement that you can cut a release even if GHA is down, so I also believe that the push-to-:latest bit should move into a
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @arkodg Completely agree that it should be a separate PR, yes. 🙂 |
||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| **/.DS_Store | ||
| .DS_Store | ||
|
LukeShu marked this conversation as resolved.
|
||
| bin/ | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: setup-deps | ||
| description: Install host system dependencies | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: 1.18.2 | ||
| cache: true | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,5 @@ | |
| *.ico | ||
| *.svg | ||
| go.mod | ||
| go.sum | ||
| go.sum | ||
| bin | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
|
LukeShu marked this conversation as resolved.
Outdated
|
||
| "problemMatcher": [ | ||
| { | ||
| "owner": "codespell-matcher-default", | ||
| "pattern": [ | ||
| { | ||
| "regexp": "^(.+):(\\d+):\\s+(.+)$", | ||
| "file": 1, | ||
| "line": 2, | ||
| "message": 3 | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "owner": "codespell-matcher-specified", | ||
| "pattern": [ | ||
| { | ||
| "regexp": "^(ERROR|WARNING):\\s+(.+):\\s+(.+?)\\s*$", | ||
| "file": 3, | ||
| "severity": 1, | ||
| "message": 2 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.