feature: Adds building workflows.
This commit is contained in:
parent
b0b11413fb
commit
7879c65e25
7 changed files with 33 additions and 241 deletions
33
.forgejo/workflows/release.yml
Normal file
33
.forgejo/workflows/release.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: Release code
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "**"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout code using Git
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: Log in to Forgejo container registry
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
registry: git.terah.dev
|
||||
username: ${{github.actor}}
|
||||
password: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Build all docker images
|
||||
run: |
|
||||
docker build ./backend --tag git.terah.dev/imterah/hermes:$GITHUB_REF_NAME
|
||||
|
||||
- name: Upload all docker images
|
||||
run: |
|
||||
docker tag git.terah.dev/imterah/hermes:$GITHUB_REF_NAME git.terah.dev/imterah/hermes:latest
|
||||
docker push git.terah.dev/imterah/hermes:$GITHUB_REF_NAME
|
||||
docker push git.terah.dev/imterah/hermes:latest
|
Loading…
Add table
Add a link
Reference in a new issue