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
+9 -9
View File
@@ -1,4 +1,4 @@
name: Docker build and push name: Docker Build and Push
on: on:
pull_request: pull_request:
@@ -13,31 +13,31 @@ 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'
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- 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/master' }} 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' }}