29 lines
851 B
YAML
29 lines
851 B
YAML
name: build_release
|
|
|
|
on:
|
|
push:
|
|
tags: ["v[0-9].[0-9].[0-9]"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install Docker
|
|
uses: https://github.com/papodaca/install-docker-action@v1
|
|
- name: Log into container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.cheezers.org
|
|
username: imcompiling
|
|
password: ${{ secrets.PASSWORD }}
|
|
- name: Set env
|
|
run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
- name: Build Docker Image
|
|
run: docker build -t gitea.cheezers.org/imcompiling/dakiny-bot:${{env.GIT_TAG}} .
|
|
- name: Push Tagged Image
|
|
run: docker push gitea.cheezers.org/imcompiling/dakiny-bot:${{env.GIT_TAG}}
|