File tree Expand file tree Collapse file tree 6 files changed +74
-4
lines changed Expand file tree Collapse file tree 6 files changed +74
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3
+ "extends" : [
4
+ " config:recommended" ,
5
+ " regexManagers:dockerfileVersions"
6
+ ]
7
+ }
8
+
Original file line number Diff line number Diff line change
1
+ name : Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ tags :
7
+ - ' *'
8
+ pull_request :
9
+ branches : [ main ]
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+
18
+ - name : Set up Docker Buildx
19
+ uses : docker/setup-buildx-action@v1
20
+
21
+ - name : Build Docker image
22
+ run : make docker-build
23
+
24
+ - name : Log in to Docker Hub
25
+ if : startsWith(github.ref, 'refs/tags/')
26
+ uses : docker/login-action@v1
27
+ with :
28
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
29
+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
30
+
31
+ - name : Push Docker image
32
+ if : startsWith(github.ref, 'refs/tags/')
33
+ run : make docker-push
Original file line number Diff line number Diff line change
1
+ name : Renovate Bot
2
+
3
+ on :
4
+ # schedule:
5
+ # - cron: '0 * * * *'
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ renovate :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Run Renovate
17
+ uses : renovatebot/github-action@v40.1.2
18
+ env :
19
+ # RENOVATE_DRY_RUN: true
20
+ RENOVATE_REPOSITORIES : linka-cloud/docker-machine-driver-scaleway
21
+ RENOVATE_TOKEN : ${{ secrets.REPOSITORIES_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ RUN apk add --no-cache git
17
17
18
18
WORKDIR /go/src/github.com/docker/machine
19
19
20
- RUN git clone --branch=v0.16.2-gitlab.21 https://gitlab.com/gitlab-org/ci-cd/docker-machine .
20
+ ARG DOCKER_MACHINE_VERSION=v0.16.2-gitlab.21
21
+
22
+ RUN git clone --branch=${DOCKER_MACHINE_VERSION} https://gitlab.com/gitlab-org/ci-cd/docker-machine .
21
23
RUN CGO_ENABLED=0 GO111MODULE=off go build -o docker-machine -trimpath -ldflags="-s -w" ./cmd/docker-machine
22
24
23
25
Original file line number Diff line number Diff line change 1
1
DOCKER_MACHINE_IMAGE := linkacloud/docker-machine-scaleway
2
2
RUNNER_IMAGE := linkacloud/gitlab-runner-docker-machine-scaleway
3
3
4
+ # renovate: datasource=gitlab-tags depName=gitlab/gitlab-runner versioning=semver
5
+ RUNNER_VERSION := v16.8.0
6
+
4
7
docker : docker-build docker-push
5
8
6
9
docker-build :
7
10
@docker build -t $(DOCKER_MACHINE_IMAGE ) .
8
- @docker build -t $(RUNNER_IMAGE ) -f gitlab-runner.Dockerfile .
11
+ @docker build -t $(RUNNER_IMAGE ) : $( RUNNER_VERSION ) -f gitlab-runner.Dockerfile .
9
12
docker-push :
10
13
@docker push $(DOCKER_MACHINE_IMAGE )
11
- @docker push $(RUNNER_IMAGE )
14
+ @docker push $(RUNNER_IMAGE ) : $( RUNNER_VERSION )
Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ RUN apk add --no-cache git
17
17
18
18
WORKDIR /go/src/github.com/docker/machine
19
19
20
- RUN git clone --branch=v0.16.2-gitlab.21 https://gitlab.com/gitlab-org/ci-cd/docker-machine .
20
+ # renovate: datasource=gitlab-tags depName=gitlab-org/ci-cd/docker-machine versioning=semver
21
+ ARG DOCKER_MACHINE_VERSION=v0.16.2-gitlab.21
22
+
23
+ RUN git clone --branch=${DOCKER_MACHINE_VERSION} https://gitlab.com/gitlab-org/ci-cd/docker-machine .
21
24
RUN CGO_ENABLED=0 GO111MODULE=off go build -o docker-machine -trimpath -ldflags="-s -w" ./cmd/docker-machine
22
25
23
26
You can’t perform that action at this time.
0 commit comments