1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 12:26:40 +07:00
vault-frontend/.forgejo/workflows/build.yml
Fedor Katurov 76594f8142
Some checks failed
Build & Publish / Build & Publish (push) Has been cancelled
add standalone build
2025-03-24 18:05:33 +07:00

46 lines
No EOL
1.3 KiB
YAML

name: Build & Publish
on:
push:
branches: [standalone]
jobs:
push_to_registry:
name: Build & Publish
runs-on: ubuntu-22.04
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Registry Login
uses: docker/login-action@v3
with:
registry: git.vault48.org
username: ${{ secrets.username }}
password: ${{ secrets.password }}
- name: Extract docker metadata
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: git.vault48.org/${{ env.GITHUB_REPOSITORY }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/nextjs-standalone/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NEXT_PUBLIC_API_HOST=https://vault48.org/api/
NEXT_PUBLIC_REMOTE_CURRENT=https://vault48.org/static/
NEXT_PUBLIC_PUBLIC_HOST=https://vault48.org/
NEXT_PUBLIC_BOT_USERNAME=vault48bot