Skip to content

Commit 5e8d6e4

Browse files
author
neil
committed
attempt to use new runner image
1 parent e5102f2 commit 5e8d6e4

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.gitea/workflows/release.yml

+8-15
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,29 @@ on: [ push ]
33

44
jobs:
55
release:
6-
runs-on: node_bookworm
7-
env:
8-
DOCKER_ORG: lacontrevoie
6+
runs-on: runner_image
97
steps:
108
- name: Checkout
11-
uses: actions/checkout@v4
9+
run: git clone {{ gitea.repositoryUrl }} .
1210

13-
- name: Install Docker
14-
run: curl -fsSL https://get.docker.com | sh
15-
1611
- name: Set up Docker Buildx
1712
uses: https://github.com/docker/setup-buildx-action@v3
1813
with:
1914
config-inline: |
20-
[registry."git.lacontrevoie.fr"]
15+
[registry."${{ vars.DOCKER_REGISTRY }}"]
2116
2217
- name: Login to DockerHub
23-
uses: docker/login-action@v2
18+
uses: docker/login-action@v3
2419
with:
25-
registry: git.lacontrevoie.fr
20+
registry: ${{ vars.DOCKER_REGISTRY }}
2621
username: ${{ secrets.DOCKER_USERNAME }}
2722
password: ${{ secrets.DOCKER_PASSWORD }}
2823

2924
- name: Build and push
30-
uses: docker/build-push-action@v4
25+
uses: docker/build-push-action@v6
3126
with:
3227
context: .
3328
file: ./Dockerfile
34-
platforms: |
35-
linux/amd64
29+
platforms: linux/amd64
3630
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 }}

0 commit comments

Comments
 (0)