4 Commits

View File

@@ -13,6 +13,7 @@ jobs:
build:
name: Build image
runs-on: ubuntu-22.04
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -20,21 +21,16 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: hub.realmanual.ru
registry: git.realmanual.ru
username: ${{ gitea.actor }}
password: ${{ secrets.PUSH_TOKEN }}
- name: Extract metadata (tags, labels) for
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ gitea.repository }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
${{ gitea.repository }}:${GITHUB_REF#refs/tags/}
${{ gitea.repository }}:latest