Přidat .gitea/workflows/build.yml
Some checks failed
Build luckperms main / Explore-Gitea-Actions (push) Failing after 46s
Some checks failed
Build luckperms main / Explore-Gitea-Actions (push) Failing after 46s
This commit is contained in:
parent
1c932f7193
commit
6b136d08ec
28
.gitea/workflows/build.yml
Normal file
28
.gitea/workflows/build.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user