parent
9a83bac140
commit
62337d3943
1 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/make-image.yml
Normal file
31
.forgejo/workflows/make-image.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v[0-9]+*'
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: repo-app
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
name: Make image
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to Docker Registry
|
||||||
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login repo.nqws.ru -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
|
|
||||||
|
- 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/repo-app-v2:latest \
|
||||||
|
--tag repo.nqws.ru/merch-tracker/repo-app-v2:${{ env.VERSION }} \
|
||||||
|
--push .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue