Files
CatsOfMastodon/.gitea/workflows/gitea-ci.yml
Mohammad Mahdi Mohammadi d5ae55c52d
Some checks failed
release / Build and push Docker image (push) Failing after 3m21s
TRY to fix gitea actions
2025-01-04 16:52:01 +03:30

43 lines
1.2 KiB
YAML
Executable File

name: release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
ASPNETCORE_ENVIRONMENT: Production
jobs:
docker:
name: Build and push Docker image
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
- name: Log in to Container registry
uses: docker/login-action@v2
with:
registry: git.mahdium.ir
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: git.mahdium.ir/mahdium/cats-of-mastodon-telegram-bot
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
# tags: git.mahdium.ir/mahdium/cats-of-mastodon-telegram-bot${{gitea.sha}},git.mahdium.ir/mahdium/cats-of-mastodon-telegram-bot:latest
# labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}