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:
|
||||
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 .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue