2023-10-20 00:34:35 +02:00
|
|
|
name: Build and push Docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
2023-10-19 19:39:54 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-10-20 00:34:35 +02:00
|
|
|
docker:
|
2023-10-19 19:39:54 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-20 00:34:35 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
2023-10-20 00:54:56 +02:00
|
|
|
-
|
|
|
|
name: Login to Gitea Container Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: git.marcelsite.com
|
2023-10-20 00:56:47 +02:00
|
|
|
username: ${{ gitea.repository_owner }}
|
2023-10-20 00:54:56 +02:00
|
|
|
password: ${{ secrets.SECRET_TOKEN }}
|
2023-10-20 00:34:35 +02:00
|
|
|
-
|
|
|
|
name: Build and push
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
push: true
|
2023-10-20 00:54:56 +02:00
|
|
|
tags: marcel/rar-index-app:latest
|