Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d00d7cf32 | |||
| de9ea45e1e | |||
| bade860fd4 | |||
| 9f4601c4d9 | |||
| 194858490d | |||
| 153ae05114 | |||
| 9dba33aa9f |
22
.gitea/workflows/release.yml
Normal file
22
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log in to Gitea Container Registry
|
||||||
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.cqre.net -u ${{ gitea.actor }} --password-stdin
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: docker build ./backend --tag git.cqre.net/cqrenet/aoc-backend:${{ gitea.ref_name }}
|
||||||
|
|
||||||
|
- name: Push Docker image
|
||||||
|
run: docker push git.cqre.net/cqrenet/aoc-backend:${{ gitea.ref_name }}
|
||||||
@@ -12,7 +12,8 @@ services:
|
|||||||
- mongo_data:/data/db
|
- mongo_data:/data/db
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build: ./backend
|
# For local development you can switch back to: build: ./backend
|
||||||
|
image: git.cqre.net/cqrenet/aoc-backend:v1.0.2
|
||||||
container_name: aoc-backend
|
container_name: aoc-backend
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user