diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..0c53bff --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build luckperms main +run-name: Build luckperms main docker image +on: [push] +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - name: Prepare | Setup git + run: | + git config --global user.name "Radim LipovĨan" + git config --global user.email "radim@lipovcan.cz" + - name: Check out repository code + uses: actions/checkout@v3 + - name: Build | Install Docker + run: | + apt-get update && apt-get install docker.io -y + - name: Build | Clone repository + run: | + git clone https://git.lipovcan.cz/Upstream/LuckPermsWeb-docker.git + cd LuckPermsWeb-docker && ls -lah + - name: Login to Docker Hub + run: | + cd LuckPermsWeb-docker + echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin + ls -lah + docker build -t ownercz/luckperms-web:latest -t ownercz/luckperms-main:$(git rev-parse --short=10 HEAD) . + docker push ownercz/luckperms-web:$(git rev-parse --short=10 HEAD) + docker push ownercz/luckperms-web:latest \ No newline at end of file