Přidat .gitea/workflows/build.yml
This commit is contained in:
commit
d5c590811c
|
@ -0,0 +1,26 @@
|
|||
name: Build Minecraft Stats Ownercz Image
|
||||
run-name: Build Minecraft Stats Ownercz 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 -y
|
||||
#git clone https://git.lipovcan.cz/Upstream/haste-server.git haste
|
||||
#- name: Build | Show repository
|
||||
# run: |
|
||||
# cd haste && ls -lah
|
||||
- name: Docker | Build image and login to Docker Hub with publication
|
||||
run: |
|
||||
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
|
||||
ls -lah
|
||||
docker build -t ownercz/minecraft-stats:latest -t ownercz/minecraftstats:${{env.GITHUB_SHA}} .
|
||||
docker push ownercz/minecraft-stats
|
Loading…
Reference in New Issue