Files
tink-demo/.gitea/workflows/deploy.yml
Henrik Jess Nielsen 26a16e3638
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
First attempt to tink demo
2026-05-22 18:30:59 +02:00

35 lines
941 B
YAML

name: Build and Deploy
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to i80 registry
uses: docker/login-action@v3
with:
registry: registry.i80.dk
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: registry.i80.dk/moneycapp-tink-demo:latest
- name: Deploy to Nomad
env:
NOMAD_ADDR: ${{ secrets.NOMAD_ADDR }}
NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }}
run: |
curl -fsSL https://releases.hashicorp.com/nomad/1.8.0/nomad_1.8.0_linux_amd64.zip -o nomad.zip
unzip -q nomad.zip && chmod +x nomad
./nomad job run moneycapp-tink-demo.nomad