Skip to content

Commit db105a3

Browse files
authored
Merge branch 'master' into patch-1
2 parents 49d2b8c + 7c2bb8e commit db105a3

File tree

5 files changed

+18
-14
lines changed

5 files changed

+18
-14
lines changed

.github/workflows/ci-tests.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,17 @@ jobs:
5959
steps:
6060
- name: Checkout code
6161
uses: actions/checkout@v3
62+
- name: Setup Golang
63+
uses: actions/setup-go@v4
64+
with:
65+
go-version: '1.20'
66+
cache: false
67+
env:
68+
GO111MODULE: off
6269
- name: Run golangci-lint
63-
uses: golangci/golangci-lint-action@v3
70+
uses: golangci/golangci-lint-action@v5
6471
with:
65-
version: v1.52.2
72+
version: v1.57.2
6673
args: --timeout 5m
6774
test:
6875
name: Ensure unit tests are passing

.golangci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
run:
22
timeout: 2m
3-
skip-files:
4-
- ".*\\.pb\\.go"
5-
skip-dirs:
6-
- vendor/
73
linters:
84
enable:
95
- vet
@@ -15,5 +11,8 @@ linters:
1511
linters-settings:
1612
goimports:
1713
local-prefixes: github.com/argoproj-labs/argocd-image-updater
18-
service:
19-
golangci-lint-version: 1.52.2
14+
issues:
15+
exclude-files:
16+
- ".*\\.pb\\.go"
17+
exclude-dirs:
18+
- vendor/

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ FROM alpine:latest
1414

1515
RUN apk update && \
1616
apk upgrade && \
17-
apk add ca-certificates git openssh-client python3 py3-pip tini && \
18-
pip3 install --upgrade pip && \
19-
pip3 install awscli && \
17+
apk add ca-certificates git openssh-client aws-cli tini && \
2018
rm -rf /var/cache/apk/*
2119

2220
RUN mkdir -p /usr/local/bin

docs/basics/update.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ The workflow of Argo CD Image Updater can be described as follows:
3232
* If Argo CD Image Updater considers an image from the list eligible for an
3333
update check, it will connect the corresponding container registry to see
3434
if there is a newer version of the image according to the
35-
[update strategy](../update-strategies/)
35+
[update strategy](../basics/update-strategies.md)
3636
and other constraints that may have been configured for the image (e.g.
3737
a list of tags that are allowed to consider).
3838

3939
* If a newer version of an image was found, Argo CD Image Updater will try
4040
to update the image according to the configured
41-
[update method](../update-methods/). Please note that Argo CD Image Updater will
41+
[update method](../basics/update-methods.md). Please note that Argo CD Image Updater will
4242
never update your manifests, instead it re-configures your Application
4343
sources to use the new image tag, and control is handed over to Argo CD.
4444

pkg/argocd/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func UpdateApplication(updateConf *UpdateConfiguration, state *SyncIterationStat
353353
}
354354
}
355355
} else {
356-
logCtx.Infof("Dry run - not commiting %d changes to application", result.NumImagesUpdated)
356+
logCtx.Infof("Dry run - not committing %d changes to application", result.NumImagesUpdated)
357357
}
358358
}
359359

0 commit comments

Comments
 (0)