publish build action

This commit is contained in:
2024-04-26 18:13:58 +02:00
parent b71253f220
commit 14b8934a1e
2 changed files with 81 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
name: release-tag
on:
push
jobs:
release-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: legonzaur
DOCKER_LATEST: nightly
# RUNNER_TOOL_CACHE: /toolcache
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker BuildX
# uses: docker/setup-buildx-action@v2
# with: # replace it with your local IP
# config-inline: |
# [registry."192.168.3.201:3000"]
# http = true
# insecure = true
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: git.legonzaur.fr
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
git.legonzaur.fr/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
git.legonzaur.fr/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
+27
View File
@@ -0,0 +1,27 @@
{
"cards": [
{
"id": 25,
"role": "personal",
"card_type": "champion",
"faction": "base",
"name": "rake, master assassin",
"cost": 7,
"defense": 7,
"guard": false,
"init_amount": 1,
"effects": [
{
"effect": "damage",
"amount": 4,
"effect_type": "champion_action"
},
{
"effect": "stun",
"amount": 1,
"effect_type": "champion_action"
}
]
}
]
}