api/.forgejo/workflows/make-image.yml
nquidox ce45f425b6
Some checks failed
/ Make image (push) Failing after 3s
action update
2025-10-10 18:24:22 +03:00

36 lines
893 B
YAML

on:
push:
tags:
- 'v[0-9]+*'
workflow_dispatch:
env:
IMAGE_NAME: mtv2-repo-app
jobs:
build-and-push:
name: Make image
runs-on: host
steps:
- name: Login to Forgejo
uses: docker/login-action@v3
with:
registry: repo.nqws.ru
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v4
- name: Extract version from tag
id: extract_version
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Make image
run: |
docker buildx build --platform linux/amd64 \
--tag repo.nqws.ru/merch-tracker/mtv2-repo-app:latest \
--tag repo.nqws.ru/merch-tracker/mtv2-repo-app:${{ env.VERSION }} \
--push .