Files
CatsOfMastodon/.gitea/workflows/gitea-ci.yml
Mohammad Mahdi Mohammadi cabdb39a55
All checks were successful
release / Build and push Docker image (push) Successful in 1m21s
Try to fix gitea actions
2025-01-04 17:30:37 +03:30

43 lines
1.0 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:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
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
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
git.mahdium.ir/mahdium/cats-of-mastodon-telegram-bot:latest