Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
4821316ee9
|
|||
798cd355b2
|
|||
eab152e928
|
|||
60e7136bcd
|
|||
99b5401c38
|
|||
b6c133bb54
|
|||
58a1a8ee2f
|
|||
bbeebda027
|
|||
267ec22c6f
|
|||
a95bf7a43e
|
|||
20de0927da
|
|||
4f8fe9e768
|
@@ -11,39 +11,26 @@ permissions:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: dind
|
||||
env:
|
||||
REGISTRY: hub.realmanual.ru
|
||||
IMAGE_NAME: pub/sqlite-backup/backup
|
||||
name: Build image
|
||||
runs-on: ubuntu-22.04
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Extract tag
|
||||
id: vars
|
||||
shell: bash
|
||||
run: |
|
||||
TAG_REF="${GITHUB_REF#refs/tags/}"
|
||||
echo "tag=$TAG_REF" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to registry
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
registry: git.realmanual.ru
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PUSH_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
- name: Build and push Docker image
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.tag }}
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
${{ gitea.repository }}:${{ gitea.ref_name }}
|
||||
${{ gitea.repository }}:latest
|
||||
|
Reference in New Issue
Block a user