Redmage/.forgejo/workflows/deploy.yaml

19 lines
521 B
YAML
Raw Normal View History

on:
push:
tags:
- "v*.*.*"
2024-05-11 20:49:40 +07:00
jobs:
deploy:
2024-05-11 21:14:12 +07:00
runs-on: docker
2024-05-11 20:49:40 +07:00
container:
image: docker:26.1.2
2024-05-11 21:19:15 +07:00
2024-05-11 20:49:40 +07:00
steps:
- run: echo "Deploying version ${{ github.ref_name }}"
- run: docker build -t git.tigor.web.id/tigor/redmage:${{ github.ref_name }} .
- run: docker build -t git.tigor.web.id/tigor/redmage:latest .
- run: docker push git.tigor.web.id/tigor/redmage:${{ github.ref_name }}
- run: docker push git.tigor.web.id/tigor/redmage:latest
- run: docker compose up -d