action update

This commit is contained in:
nquidox 2025-10-10 21:17:49 +03:00
parent 1b3259a73b
commit a75d6240b3
2 changed files with 15 additions and 7 deletions

View file

@ -11,13 +11,21 @@ jobs:
build-and-push:
name: Make image
runs-on: ubuntu-latest
container:
image: ubuntu-latest
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Forgejo
uses: docker/login-action@v3
with:
registry: repo.nqws.ru
username: ${{ secrets.MAINTAINER_USERNAME }}
password: ${{ secrets.MAINTAINER_TOKEN }}
- name: Extract version from tag
id: extract_version
run: |
@ -27,6 +35,6 @@ jobs:
- 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 }} \
--tag repo.nqws.ru/${{ github.repository }}:latest \
--tag repo.nqws.ru/${{ github.repository }}:${{ env.VERSION }} \
--push .

View file

@ -27,8 +27,8 @@ import (
func main() {
log.Debug("Starting merch-parser-api")
//setup config
//c := config.NewConfig()
c := config.DevConfig()
c := config.NewConfig()
//c := config.DevConfig()
ctx := context.Background()
//log level