Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
7219caa4ff
|
|||
2cd46e37ef
|
|||
7c8bfad01f
|
|||
4821316ee9
|
|||
798cd355b2
|
|||
eab152e928
|
|||
60e7136bcd
|
|||
99b5401c38
|
|||
b6c133bb54
|
@@ -12,8 +12,11 @@ permissions:
|
||||
jobs:
|
||||
build:
|
||||
name: Build image
|
||||
runs-on: dind
|
||||
container: git.realmanual.ru/pub/docker-build
|
||||
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,21 +24,16 @@ jobs:
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: hub.realmanual.ru
|
||||
registry: ${{ env.REGISTRY }}
|
||||
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: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.ref_name }}
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
|
Reference in New Issue
Block a user