Files
nebulabeat-mc/.gitea/workflows/build.yml
azw f5583a129d
All checks were successful
Build Archlinux-Base Image / base (push) Successful in 48s
1
2024-08-24 21:49:46 +08:00

45 lines
1.3 KiB
YAML

name: Build Archlinux-Base Image
run-name: Build Archlinux-Base Image
on:
push:
branches:
- main
env:
DOCKER_BUILDKIT: 1
DOCKER_CLI_EXPERIMENTAL: enabled
jobs:
base:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
lfs: true
- name: Login to GiteaDockerRepo
run: |
docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_TOKEN }}" ${{ vars.currect_gitea_url }}
- name: Build latest Docker image and push to GiteaRepo
run: |
pwd
ls
docker build --network=host -t nebulabeat-mc:latest --no-cache .
docker image tag nebulabeat-mc:latest ${{ vars.currect_gitea_url }}/vtbhelper/nebulabeat-mc:latest
docker image push ${{ vars.currect_gitea_url }}/vtbhelper/nebulabeat-mc:latest
- name: compress datapack
run: |
mkdir bin/
cd extra/trinkets-fixed/
zip -r ../../bin/trinkets-fixed.zip ./*
- name: compress datapack
run: |
cd extra/bot-create-fixed/
zip -r ../../bin/bot-create-fixed.zip ./*
- name: release datapack
uses: akkuman/gitea-release-action@v1
with:
files: |-
bin/**
api_key: '${{ secrets.GITHUB_TOKEN }}'