3 Commits

Author SHA1 Message Date
jcabillot e18636904b Merge pull request 'feat: add Gitea Actions workflow' (#9) from feat/gitea-actions into master
Docker Build and Push / build (push) Successful in 2m9s
Reviewed-on: #9
2026-05-29 15:04:52 -04:00
Julien Cabillot af820add1a feat: add Gitea Actions workflow
Docker Build and Push / build (pull_request) Successful in 8m43s
2026-05-29 14:46:20 -04:00
Julien Cabillot c5542d0baf feat: add gitea actions
Docker Build and Push / build (push) Successful in 1m43s
2026-05-29 13:26:42 -04:00
+10 -10
View File
@@ -2,9 +2,9 @@ name: Docker Build and Push
on: on:
pull_request: pull_request:
branches: [main] branches: [master]
push: push:
branches: [main] branches: [master]
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
@@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub - name: Login to Docker Hub
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
@@ -27,17 +27,17 @@ jobs:
- name: Docker metadata - name: Docker metadata
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v6
with: with:
images: jcabillot/ip images: jcabillot/ip
tags: | tags: |
type=ref,event=branch #type=ref,event=branch
type=ref,event=pr #type=ref,event=pr
type=sha #type=sha
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v7
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}