Přidat .gitea/workflows/build.yml
Some checks failed
Build luckperms main / Explore-Gitea-Actions (push) Failing after 46s

This commit is contained in:
Radim Lipovčan 2023-12-15 21:44:17 +01:00
parent 1c932f7193
commit 6b136d08ec

View File

@ -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