Skip to content

Add entity models and DbContext for Hoyolab integration #5

Add entity models and DbContext for Hoyolab integration

Add entity models and DbContext for Hoyolab integration #5

Workflow file for this run

name: Build and Push Docker Image on Release Tag
on:
push:
tags:
- 'release*'
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract tag name
id: extract_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build Docker image with both tags
run: |
docker build \
-f src/Gitcg.NetCord.MainApp/Dockerfile \
-t ghcr.io/${{ github.repository }}:${{ env.TAG }} \
-t ghcr.io/${{ github.repository }}:latest \
.
- name: Push Docker image (version tag)
run: docker push ghcr.io/${{ github.repository }}:${{ env.TAG }}
- name: Push Docker image (latest tag)
run: docker push ghcr.io/${{ github.repository }}:latest