Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
2cd46e37ef
|
|||
7c8bfad01f
|
|||
4821316ee9
|
|||
798cd355b2
|
|||
eab152e928
|
|||
60e7136bcd
|
|||
99b5401c38
|
|||
b6c133bb54
|
|||
58a1a8ee2f
|
|||
bbeebda027
|
@@ -11,18 +11,26 @@ permissions:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: dind
|
||||
env:
|
||||
REGISTRY: hub.realmanual.ru
|
||||
name: Build image
|
||||
runs-on: ubuntu-22.04
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea Docker Registry
|
||||
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login "${{ env.REGISTRY }}" --username "${{ github.actor }}" --password-stdin
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.realmanual.ru
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PUSH_TOKEN }}
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t "$GITHUB_REPOSITORY:${GITHUB_REF#refs/tags/}" -t "$GITHUB_REPOSITORY:latest" .
|
||||
|
||||
- name: Push Docker image
|
||||
run: docker push "$GITHUB_REPOSITORY:${GITHUB_REF#refs/tags/}" "$GITHUB_REPOSITORY:latest"
|
||||
- name: Build and push Docker image
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
${{ gitea.registry_name }}/${{ gitea.repository }}:${{ gitea.ref_name }}
|
||||
${{ gitea.registry_name }}/${{ gitea.repository }}:latest
|
||||
|
Reference in New Issue
Block a user