Files
next-portfolio/.gitea/workflows/deploy.yaml
Joe Monk f3c7bb5c8f
Some checks failed
Build and deploy / deploy (push) Failing after 32s
Set server url
2024-10-12 01:03:38 +01:00

32 lines
844 B
YAML

name: Build and deploy
run-name: Build and deploy
on:
push:
# branches:
# - main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
github-server-url: '${{ variables.SERVER_URL }}'
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to private registry
uses: docker/login-action@v3
with:
registry: '${{ variables.SERVER_URL }}/${{ gitea.repository }}'
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: '${{ variables.SERVER_URL }}/${{ gitea.repository }}:latest'