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

Enforcing docker api version #2007

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
dd54674
Add renovate.json
renovate[bot] Jul 8, 2024
f6d6887
Merge pull request #1 from beatkind/renovate/configure
beatkind Jul 8, 2024
f4763aa
chore(deps): update goreleaser/goreleaser-action digest to b508e2e
renovate[bot] Jul 8, 2024
f19b59a
Merge pull request #3 from beatkind/renovate/goreleaser-goreleaser-ac…
beatkind Jul 8, 2024
9bdc5fa
Update CODEOWNERS
beatkind Jul 8, 2024
f337309
chore(deps): update nginx docker tag to v1.27.0
renovate[bot] Jul 8, 2024
b6ecfb8
chore(deps): update alpine docker tag to v3.20.1
renovate[bot] Jul 8, 2024
b44f8ef
chore(deps): update andrewslotin/go-proxy-pull-action digest to 89382de
renovate[bot] Jul 8, 2024
c64d186
chore(ci): Delete dependabot in favor of renovate
beatkind Jul 8, 2024
fa54cc1
chore(ci): Change docker repo
beatkind Jul 8, 2024
6ee8d56
chore(ci): Update release dev
beatkind Jul 8, 2024
f9f982c
chore(ci): update build.sh
beatkind Jul 8, 2024
8d5eb97
chore(ci): update workflows
beatkind Jul 8, 2024
55f2b3b
chore(deps): update dominikh/staticcheck-action action to v1.3.1
renovate[bot] Jul 8, 2024
2d85c81
fix(deps): update module github.com/docker/cli to v24.0.9+incompatible
renovate[bot] Jul 8, 2024
9782311
fix(deps): update module github.com/spf13/cobra to v1.8.1
renovate[bot] Jul 8, 2024
9c249fb
fix(deps): update module github.com/docker/docker to v24.0.9+incompat…
renovate[bot] Jul 8, 2024
22d5435
chore(deps): update actions/setup-go action to v5
renovate[bot] Jul 8, 2024
2c0dbd9
chore(deps): update codecov/codecov-action action to v4
renovate[bot] Jul 8, 2024
953e797
chore(deps): update docker/login-action action to v3
renovate[bot] Jul 8, 2024
59154da
chore(deps): update goreleaser/goreleaser-action action to v6
renovate[bot] Jul 8, 2024
7006091
fix(deps): update module github.com/docker/go-connections to v0.5.0
renovate[bot] Jul 8, 2024
3c3749d
chore(deps): update qmcgaw/gluetun docker tag to v3.38.0
renovate[bot] Jul 8, 2024
95cbb7f
chore(go): bump go to 1.22
beatkind Jul 8, 2024
89dba84
chore(go): rename
beatkind Jul 8, 2024
be15a74
fix(deps): update module github.com/prometheus/client_golang to v1.19.1
renovate[bot] Jul 8, 2024
107049d
fix(deps): update module golang.org/x/net to v0.27.0
renovate[bot] Jul 8, 2024
8d27009
fix(deps): update module github.com/spf13/viper to v1.19.0
renovate[bot] Jul 8, 2024
14610ca
fix(deps): update module github.com/onsi/gomega to v1.33.1
renovate[bot] Jul 8, 2024
0636edc
fix(deps): update module github.com/docker/cli to v27
renovate[bot] Jul 8, 2024
1e96f9b
fix(deps): update module github.com/onsi/ginkgo to v2
renovate[bot] Jul 8, 2024
1001ef2
chore(ci): fix releaser
beatkind Jul 8, 2024
45d87dc
chore(ci): Update goreleaser
beatkind Jul 8, 2024
160c428
fix(deps): update module github.com/docker/docker to v27
renovate[bot] Jul 8, 2024
034de76
chore: update versions
beatkind Jul 8, 2024
784f871
feat: bump docker versions, remove deprecations
beatkind Jul 8, 2024
52c4504
fix(deps): update module github.com/onsi/ginkgo to v2
renovate[bot] Jul 8, 2024
b1a8282
Create CNAME
beatkind Jul 9, 2024
7382727
chore: Update readme, add some hints, fix markdown
beatkind Jul 9, 2024
156d25c
chore(docs): Update docs
beatkind Jul 9, 2024
ce8ec06
chore: update docs
beatkind Jul 9, 2024
c9a12c4
chore: update docs
beatkind Jul 9, 2024
8da0c43
chore: format warning docs
beatkind Jul 9, 2024
e6b2af4
chore: add custom domain
beatkind Jul 9, 2024
3dca713
fix(deps): update module github.com/onsi/ginkgo to v2
renovate[bot] Jul 8, 2024
aff541a
chore: update go.mod for ginkgo
beatkind Jul 14, 2024
861e33a
fix(deps): update module github.com/onsi/ginkgo to v2
renovate[bot] Jul 14, 2024
70e75e8
chore(deps): update docker/login-action digest to 9780b0c
renovate[bot] Jul 22, 2024
a3bc5ab
chore(deps): update alpine docker tag to v3.20.2
renovate[bot] Jul 23, 2024
2292c32
fix(deps): update module github.com/docker/docker to v27.1.1+incompat…
renovate[bot] Jul 24, 2024
909480c
fix(deps): update module github.com/docker/cli to v27.1.1+incompatible
renovate[bot] Jul 30, 2024
8bba235
feat: Checking if DOCKER_API_VERSION is set, if not set it to 1.44, i…
beatkind Jul 30, 2024
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
9 changes: 1 addition & 8 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
pkg/notifications/smtp.go @piksel
pkg/notifications/email.go @piksel
pkg/notifications/shoutrrr.go @piksel @simskij @arnested
pkg/container/* @simskij
pkg/api/* @victorcmoura
.devbots/* @simskij
.github/* @simskij
docs/* @containrrr/watchtower-contributors
* @beatkind
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/containrrr/watchtower/discussions
url: https://github.com/beatkind/watchtower/discussions
about: Ask questions and discuss with other community members
21 changes: 0 additions & 21 deletions .github/dependabot.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/dependabot-approve.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/greetings.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Build tplprev
run: scripts/build-tplprev.sh
- name: Setup python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.20.x
- uses: dominikh/staticcheck-action@ba605356b4b29a60e87ab9404b712f3461e566dc #v1.3.0
go-version: 1.22.x
- uses: dominikh/staticcheck-action@fe1dd0c3658873b46f8c9bb3291096a617310ca6 # v1.3.1
with:
version: "2023.1.6"
install-go: "false" # StaticCheck uses go v1.17 which does not support `any`
Expand All @@ -29,7 +29,7 @@ jobs:
fail-fast: false
matrix:
go-version:
- 1.20.x
- 1.22.x
platform:
- macos-latest
- windows-latest
Expand All @@ -41,14 +41,14 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Run tests
run: |
go test -v -coverprofile coverage.out -covermode atomic ./...
- name: Publish coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
Expand All @@ -60,11 +60,11 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Build
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 #v3
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6
with:
version: v0.155.0
args: --snapshot --skip-publish --debug
23 changes: 7 additions & 16 deletions .github/workflows/release-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Build
run: ./build.sh
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Test
run: go test -v -coverprofile coverage.out -covermode atomic ./...
- name: Publish coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
publish:
Expand All @@ -44,16 +44,7 @@ jobs:
uses: jerray/publish-docker-action@87d84711629b0dc9f6bb127b568413cc92a2088e #master@2022-10-14
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
file: dockerfiles/Dockerfile.self-contained
repository: containrrr/watchtower
tags: latest-dev
- name: Publish to GHCR
uses: jerray/publish-docker-action@87d84711629b0dc9f6bb127b568413cc92a2088e #master@2022-10-14
with:
username: ${{ secrets.BOT_USERNAME }}
password: ${{ secrets.BOT_GHCR_PAT }}
file: dockerfiles/Dockerfile.self-contained
registry: ghcr.io
repository: containrrr/watchtower
repository: beatkind/watchtower
tags: latest-dev
117 changes: 117 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Release (Production)

on:
workflow_dispatch: {}
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- '**/v[0-9]+.[0-9]+.[0-9]+'

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- uses: dominikh/staticcheck-action@fe1dd0c3658873b46f8c9bb3291096a617310ca6 # v1.3.1
with:
version: "latest"
install-go: "false" # StaticCheck uses go v1.17 which does not support `any`

test:
name: Test
strategy:
matrix:
go-version:
- 1.22.x
platform:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Run tests
run: |
go test ./... -coverprofile coverage.out

build:
name: Build
runs-on: ubuntu-latest
needs:
- test
- lint
env:
CGO_ENABLED: 0
TAG: ${{ github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6
with:
version: v0.155.0
args: --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable experimental docker features
run: |
mkdir -p ~/.docker/ && \
echo '{"experimental": "enabled"}' > ~/.docker/config.json
- name: Create manifest for version
run: |
export DH_TAG=$(git tag --points-at HEAD | sed 's/^v*//')
docker manifest create \
beatkind/watchtower:$DH_TAG \
beatkind/watchtower:amd64-$DH_TAG \
beatkind/watchtower:i386-$DH_TAG \
beatkind/watchtower:armhf-$DH_TAG \
beatkind/watchtower:arm64v8-$DH_TAG
- name: Create manifest for latest
run: |
docker manifest create \
beatkind/watchtower:latest \
beatkind/watchtower:amd64-latest \
beatkind/watchtower:i386-latest \
beatkind/watchtower:armhf-latest \
beatkind/watchtower:arm64v8-latest
- name: Push manifests to Dockerhub
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
run: |
docker login -u $DOCKER_USER -p $DOCKER_TOKEN && \
docker manifest push beatkind/watchtower:$(echo $TAG | sed 's/^v*//') && \
docker manifest push beatkind/watchtower:latest
renew-docs:
name: Refresh pkg.go.dev
needs: build
runs-on: ubuntu-latest
steps:
- name: Pull new module version
uses: andrewslotin/go-proxy-pull-action@89382de145eeb7a85de72f8a27f686a50727bc7a #master@2022-10-14
Loading