2 Commits

Author SHA1 Message Date
Julien Cabillot b5cd166f1b test
Docker build and push / build (pull_request) Successful in 2m15s
2026-05-29 08:56:52 -04:00
Julien Cabillot 7a54bdc027 feat: add gitea actions
Docker Build and Push / build (push) Successful in 2m34s
2026-05-29 08:56:07 -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@v6 uses: actions/checkout@v4
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4 uses: docker/setup-buildx-action@v3
- 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@v4 uses: docker/login-action@v3
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@v6 uses: docker/metadata-action@v5
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@v7 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}