action update
This commit is contained in:
parent
1b3259a73b
commit
a75d6240b3
2 changed files with 15 additions and 7 deletions
|
|
@ -11,13 +11,21 @@ jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
name: Make image
|
name: Make image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ubuntu-latest
|
|
||||||
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Extract version from tag
|
||||||
id: extract_version
|
id: extract_version
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -27,6 +35,6 @@ jobs:
|
||||||
- name: Make image
|
- name: Make image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build --platform linux/amd64 \
|
docker buildx build --platform linux/amd64 \
|
||||||
--tag repo.nqws.ru/merch-tracker/mtv2-repo-app:latest \
|
--tag repo.nqws.ru/${{ github.repository }}:latest \
|
||||||
--tag repo.nqws.ru/merch-tracker/mtv2-repo-app:${{ env.VERSION }} \
|
--tag repo.nqws.ru/${{ github.repository }}:${{ env.VERSION }} \
|
||||||
--push .
|
--push .
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
log.Debug("Starting merch-parser-api")
|
log.Debug("Starting merch-parser-api")
|
||||||
//setup config
|
//setup config
|
||||||
//c := config.NewConfig()
|
c := config.NewConfig()
|
||||||
c := config.DevConfig()
|
//c := config.DevConfig()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
//log level
|
//log level
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue