Přidat .gitea/workflows/build.yml
Some checks failed
Build Minecraft Image / Build-Minecraft-Stats-Image (push) Failing after 1m39s
Some checks failed
Build Minecraft Image / Build-Minecraft-Stats-Image (push) Failing after 1m39s
This commit is contained in:
parent
7d6985465a
commit
3af3876d16
26
.gitea/workflows/build.yml
Normal file
26
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Build Minecraft Image
|
||||||
|
run-name: Build Minecraft image and publish
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
Build-Minecraft-Stats-Image:
|
||||||
|
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 git -y
|
||||||
|
git clone https://git.lipovcan.cz/Upstream/littlelink-server.git littlelink
|
||||||
|
|
||||||
|
- name: Docker | Build image and login to Docker Hub with publication
|
||||||
|
run: |
|
||||||
|
cd littlelink
|
||||||
|
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
|
||||||
|
ls -lah
|
||||||
|
docker build -t ownercz/littlelink:latest -t ownercz/littlelink:${{env.GITHUB_SHA}} .
|
||||||
|
docker push ownercz/littlelink:latest
|
||||||
|
docker push ownercz/littlelink:${{env.GITHUB_SHA}}
|
Loading…
Reference in New Issue
Block a user