Skip to content
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

Update GH Actions #120

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
# Maintain dependencies for GitHub Actions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
36 changes: 20 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@ name: CI
on:
push:
tags: ["v*"]
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
push-image:
name: Push Images
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v3
# https://github.com/actions/checkout
uses: actions/checkout@v4

# https://github.com/actions/setup-go
- name: Setup Go
uses: actions/setup-go@v4
# https://github.com/actions/setup-go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: "1.22"

- name: Install Prerequisites
run: |
Expand All @@ -58,7 +57,8 @@ jobs:
make coverage.txt

- name: Push Code Coverage
uses: codecov/codecov-action@v3
# https://github.com/codecov/codecov-action
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./coverage.txt # optional
Expand All @@ -73,26 +73,28 @@ jobs:
make bin/release.tar.gz
make release-binaries

# https://github.com/docker/login-action#github-packages-docker-registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
# https://github.com/docker/login-action#github-packages-docker-registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# https://github.com/docker/login-action#github-packages-docker-registry
- name: Login to Docker Hub
uses: docker/login-action@v2
# https://github.com/docker/login-action#github-packages-docker-registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
# https://github.com/docker/setup-qemu-action
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# https://github.com/docker/setup-buildx-action
uses: docker/setup-buildx-action@v3

- name: Push Images (Commit)
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
Expand All @@ -114,6 +116,7 @@ jobs:
make DOCKER_PUSH=--push REGISTRY=ghcr.io/jeremyje images

- name: Create Release
# https://github.com/softprops/action-gh-release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
Expand Down Expand Up @@ -152,7 +155,8 @@ jobs:
bin/release/server-arm64.exe

- name: Publish Application
uses: actions/upload-artifact@v3
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v4
if: startsWith(github.ref, 'refs/tags/')
with:
name: release.tar.gz
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: misspell
# https://github.com/reviewdog/action-misspell
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
Expand All @@ -35,8 +36,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: hadolint
# https://github.com/reviewdog/action-hadolint
uses: reviewdog/action-hadolint@v1
with:
github_token: ${{ secrets.github_token }}
Expand All @@ -48,8 +50,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: codespell
# https://github.com/plettich/action-codespell
uses: plettich/action-codespell@master
with:
github_token: ${{ secrets.github_token }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/dustin/go-humanize v1.0.1
github.com/go-git/go-git/v5 v5.11.0
github.com/google/go-cmp v0.6.0
github.com/jeremyje/gomain v0.7.0
github.com/jeremyje/gomain v0.8.0
github.com/mholt/archiver/v4 v4.0.0-alpha.8
github.com/prometheus/client_golang v1.18.0
github.com/rs/cors v1.10.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOl
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
github.com/jeremyje/gomain v0.7.0 h1:V8g8nmSceTgPwXfZSbNY9lWuDHTQ6RC0ht0611HlDaU=
github.com/jeremyje/gomain v0.7.0/go.mod h1:Wbrg6yJdAGO3XpovgvEnSejxchJlezDzbcO6NMWdgM8=
github.com/jeremyje/gomain v0.8.0 h1:mh6zPQVRjuxIUsYqYLsBStqxEmgjnFJaM0lDjbMrYDY=
github.com/jeremyje/gomain v0.8.0/go.mod h1:iZfnVo2Vg0Kz1897QzO8vMinMpJPoeI8DDwsSyTNUdc=
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=
Expand Down