1
- name : Gitea Actions Demo
2
- run-name : ${{ gitea.actor }} is testing out Gitea Actions 🚀
3
- on : [push]
1
+ name : Build and push
2
+ on : [ push ]
4
3
5
4
jobs :
6
- Explore-Gitea-Actions :
7
- runs-on : debian_bookworm
5
+ release :
6
+ runs-on : node_bookworm
7
+ env :
8
+ DOCKER_ORG : lacontrevoie
8
9
steps :
9
- - run : echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
10
- - run : echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
11
- - run : echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
12
- - name : Check out repository code
10
+ - name : Checkout
13
11
uses : actions/checkout@v4
14
- - run : echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
15
- - run : echo "🖥️ The workflow is now ready to test your code on the runner."
16
- - name : List files in the repository
17
- run : |
18
- ls ${{ gitea.workspace }}
19
- - run : echo "🍏 This job's status is ${{ job.status }}."
12
+
13
+ - name : Set up Docker Buildx
14
+ uses : https://github.com/docker/setup-buildx-action@v3
15
+ with :
16
+ config-inline : |
17
+ [registry."git.lacontrevoie.fr"]
18
+
19
+ - name : Login to DockerHub
20
+ uses : docker/login-action@v2
21
+ with :
22
+ registry : git.lacontrevoie.fr
23
+ username : ${{ secrets.DOCKER_USERNAME }}
24
+ password : ${{ secrets.DOCKER_PASSWORD }}
25
+
26
+ - name : Build and push
27
+ uses : docker/build-push-action@v4
28
+ with :
29
+ context : .
30
+ file : ./Dockerfile
31
+ platforms : |
32
+ linux/amd64
33
+ push : true
34
+ tags : |
35
+ git.lacontrevoie.fr/${{ env.DOCKER_ORG }}/autodiscover:latest
36
+ git.lacontrevoie.fr/${{ env.DOCKER_ORG }}/autodiscover:${{ gitea.sha }}
0 commit comments