Skip to content

Commit fd7f339

Browse files
committed
chore(ci): updated golinter action to v1.46.1
Signed-off-by: Frederico Araujo <[email protected]>
1 parent 2a2d834 commit fd7f339

File tree

1 file changed

+54
-55
lines changed

1 file changed

+54
-55
lines changed

.github/workflows/ci.yaml

Lines changed: 54 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77
- dev
88
tags:
9-
- '*'
9+
- '*'
1010
pull_request:
1111
branches:
1212
- master
@@ -20,7 +20,7 @@ on:
2020
- unlocked
2121
- review_requested
2222
workflow_dispatch:
23-
23+
2424
env:
2525
DOCKER_REGISTRY_REPOSITORY: sysflowtelemetry/sf-processor
2626
PLUGIN_BUILDER_DOCKER_REGISTRY_REPOSITORY: sysflowtelemetry/plugin-builder
@@ -34,47 +34,47 @@ jobs:
3434
uses: actions/checkout@v2
3535
- name: Lint core module
3636
uses: golangci/golangci-lint-action@v2
37-
with:
38-
version: v1.42.1
37+
with:
38+
version: v1.46.1
3939
working-directory: core
40-
args: --disable=errcheck
41-
lint-driver:
40+
args: --disable=errcheck
41+
lint-driver:
4242
needs: lint-core
4343
runs-on: ubuntu-latest
4444
steps:
4545
- name: Checkout
46-
uses: actions/checkout@v2
46+
uses: actions/checkout@v2
4747
- name: Lint driver module
4848
uses: golangci/golangci-lint-action@v2
49-
with:
50-
version: v1.42.1
49+
with:
50+
version: v1.46.1
5151
working-directory: driver
52-
args: --disable=errcheck
52+
args: --disable=errcheck
5353
docker:
5454
needs: lint-driver
5555
runs-on: ubuntu-latest
5656
permissions:
5757
contents: read
5858
packages: write
59-
steps:
59+
steps:
6060
- name: Checkout
61-
uses: actions/checkout@v2
62-
- name: Read manifest
63-
shell: bash
64-
run: |
65-
echo "UBI_VERSION=$(awk -F'=' '/UBI_VERSION/{print $2}' makefile.manifest.inc)" >> $GITHUB_ENV
61+
uses: actions/checkout@v2
62+
- name: Read manifest
63+
shell: bash
64+
run: |
65+
echo "UBI_VERSION=$(awk -F'=' '/UBI_VERSION/{print $2}' makefile.manifest.inc)" >> $GITHUB_ENV
6666
- name: Docker meta
6767
id: meta
6868
uses: docker/metadata-action@v3
69-
with:
69+
with:
7070
images: |
7171
${{ env.DOCKER_REGISTRY_REPOSITORY }}
7272
ghcr.io/${{ github.repository }}
73-
tags: |
73+
tags: |
7474
type=edge,branch=master
7575
type=ref,event=branch
76-
type=ref,event=tag
77-
type=ref,event=pr
76+
type=ref,event=tag
77+
type=ref,event=pr
7878
labels: |
7979
org.opencontainers.image.documentation=https://sysflow.readthedocs.io/
8080
org.opencontainers.image.vendor=SysFlow
@@ -83,49 +83,49 @@ jobs:
8383
- name: Set up Docker Buildx
8484
uses: docker/setup-buildx-action@v1
8585
- name: Login to DockerHub
86-
uses: docker/login-action@v1
86+
uses: docker/login-action@v1
8787
if: ${{ github.event_name != 'pull_request' }}
8888
with:
8989
username: ${{ secrets.DOCKERHUB_USERNAME }}
9090
password: ${{ secrets.DOCKERHUB_TOKEN }}
9191
- name: Login to GitHub Container Registry
92-
uses: docker/login-action@v1
92+
uses: docker/login-action@v1
9393
if: ${{ github.event_name != 'pull_request' }}
9494
with:
9595
registry: ghcr.io
9696
username: ${{ github.repository_owner }}
97-
password: ${{ secrets.GITHUB_TOKEN }}
97+
password: ${{ secrets.GITHUB_TOKEN }}
9898
- name: Set build args
9999
id: args
100100
shell: bash
101101
run: |
102102
echo "##[set-output name=ubi_version;]$(awk -F'=' '/UBI_VERSION/{print $2}' makefile.manifest.inc)"
103103
echo "##[set-output name=branch;]$(echo ${GITHUB_REF##refs/*/})"
104-
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
104+
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
105105
- name: Build and push plugin builder image
106-
id: docker_plugin_builder
107-
uses: docker/build-push-action@v2
106+
id: docker_plugin_builder
107+
uses: docker/build-push-action@v2
108108
with:
109109
push: ${{ github.event_name != 'pull_request' }}
110110
tags: |
111111
${{ env.PLUGIN_BUILDER_DOCKER_REGISTRY_REPOSITORY }}:${{ steps.args.outputs.branch }}
112-
ghcr.io/${{ env.GH_ORGANIZATION }}/plugin-builder:${{ steps.args.outputs.branch }}
113-
target: base
112+
ghcr.io/${{ env.GH_ORGANIZATION }}/plugin-builder:${{ steps.args.outputs.branch }}
113+
target: base
114114
labels: "${{ steps.meta.outputs.labels }}"
115-
build-args: |
115+
build-args: |
116116
BUILD_NUMBER=${{ steps.args.outputs.sha_short }}
117117
VERSION=${{ steps.args.outputs.branch }}
118118
RELEASE=${{ steps.args.outputs.sha_short }}
119-
UBI_VER=${{ steps.args.outputs.ubi_version }}
119+
UBI_VER=${{ steps.args.outputs.ubi_version }}
120120
- name: Build and push
121-
id: docker_build
122-
uses: docker/build-push-action@v2
121+
id: docker_build
122+
uses: docker/build-push-action@v2
123123
with:
124124
push: ${{ github.event_name != 'pull_request' }}
125125
tags: "${{ steps.meta.outputs.tags }}"
126126
labels: "${{ steps.meta.outputs.labels }}"
127127
cache-from: type=registry,ref=ghcr.io/${{ env.GH_ORGANIZATION }}/plugin-builder:${{ steps.args.outputs.branch }}
128-
build-args: |
128+
build-args: |
129129
BUILD_NUMBER=${{ steps.args.outputs.sha_short }}
130130
VERSION=${{ steps.args.outputs.branch }}
131131
RELEASE=${{ steps.args.outputs.sha_short }}
@@ -138,55 +138,54 @@ jobs:
138138
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }}
139139
with:
140140
destination_container_repo: ${{ env.DOCKER_REGISTRY_REPOSITORY }}
141-
provider: dockerhub
142-
readme_file: "README.md"
141+
provider: dockerhub
142+
readme_file: "README.md"
143143
- name: Image digest
144144
run: echo ${{ steps.docker_build.outputs.digest }}
145-
release:
146-
needs: docker
145+
release:
146+
needs: docker
147147
if: startsWith(github.ref, 'refs/tags/')
148-
runs-on: ubuntu-latest
148+
runs-on: ubuntu-latest
149149
permissions:
150-
contents: write
151-
steps:
150+
contents: write
151+
steps:
152152
- name: Checkout
153-
uses: actions/checkout@v2
153+
uses: actions/checkout@v2
154154
- name: Set up Docker Buildx
155-
uses: docker/setup-buildx-action@v1
155+
uses: docker/setup-buildx-action@v1
156156
- name: Setup cmake
157157
uses: jwlawson/[email protected]
158158
with:
159-
cmake-version: '3.16.x'
159+
cmake-version: '3.16.x'
160160
- name: Get version from tag
161161
id: tag_name
162162
shell: bash
163-
run: |
164-
GHREF=${GITHUB_REF#refs/tags/}; echo ::set-output name=current_version::${GHREF%-*}
165-
echo ::set-output name=current_tag::${GITHUB_REF#refs/tags/}
163+
run: |
164+
GHREF=${GITHUB_REF#refs/tags/}; echo ::set-output name=current_version::${GHREF%-*}
165+
echo ::set-output name=current_tag::${GITHUB_REF#refs/tags/}
166166
- name: Build Release Assets
167167
id: build_release_assets
168168
shell: bash
169169
run: |
170170
docker pull ${{ env.DOCKER_REGISTRY_REPOSITORY }}:${{ steps.tag_name.outputs.current_tag }}
171171
make package
172-
echo "##[set-output name=deb;] $(ls ${{ github.workspace }}/scripts/cpack/*.deb)"
173-
echo "##[set-output name=rpm;] $(ls ${{ github.workspace }}/scripts/cpack/*.rpm)"
174-
echo "##[set-output name=targz;] $(ls ${{ github.workspace }}/scripts/cpack/*.tar.gz)"
172+
echo "##[set-output name=deb;] $(ls ${{ github.workspace }}/scripts/cpack/*.deb)"
173+
echo "##[set-output name=rpm;] $(ls ${{ github.workspace }}/scripts/cpack/*.rpm)"
174+
echo "##[set-output name=targz;] $(ls ${{ github.workspace }}/scripts/cpack/*.tar.gz)"
175175
- name: Get Changelog Entry
176176
id: changelog_reader
177177
uses: mindsers/changelog-reader-action@v2
178-
with:
178+
with:
179179
version: ${{ steps.tag_name.outputs.current_version }}
180-
path: ./CHANGELOG.md
180+
path: ./CHANGELOG.md
181181
- name: Release
182-
uses: softprops/action-gh-release@v1
182+
uses: softprops/action-gh-release@v1
183183
with:
184-
body: ${{ steps.changelog_reader.outputs.changes }}
185-
token: ${{ secrets.GITHUB_TOKEN }}
184+
body: ${{ steps.changelog_reader.outputs.changes }}
185+
token: ${{ secrets.GITHUB_TOKEN }}
186186
prerelease: contains(steps.tag_name.outputs.current_version, '-rc')
187187
draft: true
188188
files: |
189189
${{ steps.build_release_assets.outputs.deb }}
190190
${{ steps.build_release_assets.outputs.rpm }}
191191
${{ steps.build_release_assets.outputs.targz }}
192-

0 commit comments

Comments
 (0)