hermes/.forgejo/workflows/release.yml
imterah 9d90477ffb
Some checks failed
Release code / build (push) Failing after 1m57s
chore: Fix actions.
2024-12-24 10:08:23 -05:00

38 lines
1.2 KiB
YAML

name: Release code
on:
push:
tags:
- "**"
jobs:
build:
runs-on: docker
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
docker build ./sshfrontend --tag git.terah.dev/imterah/hermes-lom:$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
docker tag git.terah.dev/imterah/hermes-lom:$GITHUB_REF_NAME git.terah.dev/imterah/hermes-lom:latest
docker push git.terah.dev/imterah/hermes-lom:$GITHUB_REF_NAME
docker push git.terah.dev/imterah/hermes-lom:latest