3 Commits

View File

@@ -14,6 +14,9 @@ jobs:
name: Build image
runs-on: ubuntu-22.04
container: catthehacker/ubuntu:act-latest
env:
REGISTRY: git.realmanual.ru
IMAGE_NAME: ${{ gitea.repository }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -21,7 +24,7 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: git.realmanual.ru
registry: ${{ env.REGISTRY }}
username: ${{ gitea.actor }}
password: ${{ secrets.PUSH_TOKEN }}
@@ -32,5 +35,5 @@ jobs:
context: .
push: true
tags: |
${{ gitea.repository }}:${{ gitea.ref_name }}
${{ gitea.repository }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest