Files
shortlink-rs/.gitea/workflows/rust-ci.yml
2025-10-08 20:26:14 +03:00

28 lines
848 B
YAML

name: Build and Push Docker Image
on:
create:
tags:
jobs:
build-and-push:
runs-on: ubuntu-24.04
steps:
- name: Login to Gitea Container Image Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ gitea.actor }}
password: ${{ secrets.PUSH_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.REGISTRY_TAG }}/${{ gitea.repository }}:latest
${{ secrets.REGISTRY_TAG }}/${{ gitea.repository }}:${{ gitea.ref_name }}