fixed workflow
This commit is contained in:
@@ -14,13 +14,18 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Log in directly - senza QEMU e Buildx
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
run: |
|
uses: docker/login-action@v3
|
||||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login \
|
with:
|
||||||
-u "${{ secrets.GITEA_USERNAME }}" \
|
registry: gitea.enrilinux.ovh
|
||||||
--password-stdin \
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
gitea.example.com
|
password: ${{ secrets.AUTHTOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
@@ -29,8 +34,10 @@ jobs:
|
|||||||
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
run: |
|
uses: docker/build-push-action@v5
|
||||||
docker build -t gitea.example.com/${{ github.repository_owner }}/${{ steps.meta.outputs.REPO_NAME }}:latest .
|
with:
|
||||||
docker tag gitea.example.com/${{ github.repository_owner }}/${{ steps.meta.outputs.REPO_NAME }}:latest \
|
context: .
|
||||||
gitea.example.com/${{ github.repository_owner }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.SHORT_SHA }}
|
push: true
|
||||||
docker push gitea.example.com/${{ github.repository_owner }}/${{ steps.meta.outputs.REPO_NAME }} --all-tags
|
tags: |
|
||||||
|
gitea.enrilinux.ovh/${{ github.repository_owner }}/${{ steps.meta.outputs.REPO_NAME }}:latest
|
||||||
|
gitea.enrilinux.ovh/${{ github.repository_owner }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.SHORT_SHA }}
|
||||||
|
|||||||
Reference in New Issue
Block a user