Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Nov 2, 2023
1 parent 8e1de57 commit e6144df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Fetch git tags
run: git fetch --tags
Expand All @@ -25,7 +25,7 @@ jobs:
run: ./contrib/check-version.sh

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -42,5 +42,8 @@ jobs:
- name: Install deps
run: go mod download

- name: Lint
run: make lint

- name: Test
run: go test -v -race -p=1 -count=1
10 changes: 5 additions & 5 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Fetch git tags
run: git fetch --tags
Expand All @@ -19,21 +19,21 @@ jobs:

# Buildx Needs QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

# We use Buildx so we can take advantage of the caching
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
tags: |
ghcr.io/mailgun/gubernator:${{ github.event.release.tag_name }}
Expand Down

0 comments on commit e6144df

Please sign in to comment.