Public Access
25 lines
729 B
YAML
25 lines
729 B
YAML
name: Build and Push Docker Image
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: gitea.aethas38.duckdns.org
|
|
# On utilise ici les nouveaux noms autorisés
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: gitea.aethas38.duckdns.org/xavier/aethas-free:latest |