Skip to content

Commit

Permalink
Fix: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Nov 8, 2023
1 parent 45946ee commit e990ebe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
DOCKER_IMAGE_BASE: ${{ github.repository }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Log in to the registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -35,12 +35,12 @@ jobs:

- name: Indexer image tags & labels
id: meta-indexer
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_BASE }}

- name: Indexer image build & push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: build/Dockerfile
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,25 @@ jobs:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.2'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v2.3.0
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
args: --timeout=3m
version: v1.54.1
args: --timeout=5m
test:
runs-on: ubuntu-latest
steps:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
go-version: 1.21.x
- name: checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
Expand Down

0 comments on commit e990ebe

Please sign in to comment.