5 Commits

View File

@@ -12,8 +12,8 @@ permissions:
jobs: jobs:
build: build:
name: Build image name: Build image
runs-on: dind runs-on: ubuntu-22.04
container: ghcr.io/catthehacker/ubuntu:act-latest container: catthehacker/ubuntu:act-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -21,21 +21,16 @@ jobs:
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: hub.realmanual.ru registry: git.realmanual.ru
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.PUSH_TOKEN }} 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 - name: Build and push Docker image
id: push id: push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: |
labels: ${{ steps.meta.outputs.labels }} $GITHUB_REPOSITORY:${GITHUB_REF#refs/tags/}
$GITHUB_REPOSITORY:latest