Github CD

This commit is contained in:
Zeecka
2026-01-04 23:40:24 +01:00
parent f26c638c52
commit 6e0ec35bc8
3 changed files with 17 additions and 19 deletions
+42
View File
@@ -0,0 +1,42 @@
name: Docker Image CI
on:
push:
tags:
- '*'
jobs:
docker-releases:
runs-on: ubuntu-latest
steps:
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Downcase username
run: echo "lower_actor=${GITHUB_ACTOR,,}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v6.9.0
with:
context: ./
push: true
tags: |
ghcr.io/${{ env.lower_actor }}/aperisolve:${{ env.RELEASE_VERSION }}
ghcr.io/${{ env.lower_actor }}/aperisolve:latest