2024-05-11 22:02:04 +07:00
|
|
|
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:
|
2024-05-11 22:02:04 +07:00
|
|
|
- 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
|