Commit 5e8d6e4 neil
committed
1 parent e5102f2 commit 5e8d6e4 Copy full SHA for 5e8d6e4
File tree 1 file changed +8
-15
lines changed
1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -3,36 +3,29 @@ on: [ push ]
3
3
4
4
jobs :
5
5
release :
6
- runs-on : node_bookworm
7
- env :
8
- DOCKER_ORG : lacontrevoie
6
+ runs-on : runner_image
9
7
steps :
10
8
- name : Checkout
11
- uses : actions/checkout@v4
9
+ run : git clone {{ gitea.repositoryUrl }} .
12
10
13
- - name : Install Docker
14
- run : curl -fsSL https://get.docker.com | sh
15
-
16
11
- name : Set up Docker Buildx
17
12
uses : https://github.com/docker/setup-buildx-action@v3
18
13
with :
19
14
config-inline : |
20
- [registry."git.lacontrevoie.fr "]
15
+ [registry."${{ vars.DOCKER_REGISTRY }} "]
21
16
22
17
- name : Login to DockerHub
23
- uses : docker/login-action@v2
18
+ uses : docker/login-action@v3
24
19
with :
25
- registry : git.lacontrevoie.fr
20
+ registry : ${{ vars.DOCKER_REGISTRY }}
26
21
username : ${{ secrets.DOCKER_USERNAME }}
27
22
password : ${{ secrets.DOCKER_PASSWORD }}
28
23
29
24
- name : Build and push
30
- uses : docker/build-push-action@v4
25
+ uses : docker/build-push-action@v6
31
26
with :
32
27
context : .
33
28
file : ./Dockerfile
34
- platforms : |
35
- linux/amd64
29
+ platforms : linux/amd64
36
30
push : true
37
- tags : |
38
- git.lacontrevoie.fr/${{ env.DOCKER_ORG }}/autodiscover:latest,git.lacontrevoie.fr/${{ env.DOCKER_ORG }}/autodiscover:${{ gitea.sha }}
31
+ tags : ${{ vars.DOCKER_REGISTRY }}/${{ gitea.repository }}:latest,${{ vars.DOCKER_REGISTRY }}/${{ gitea.repository }}:${{ gitea.sha }}
You can’t perform that action at this time.
0 commit comments