Přidat .gitea/workflows/build.yml
Some checks failed
Build Nginx and PHP image / Build-Minecraft-Stats-Image (push) Failing after 1m17s
Some checks failed
Build Nginx and PHP image / Build-Minecraft-Stats-Image (push) Failing after 1m17s
This commit is contained in:
commit
6a8d5ca17b
22
.gitea/workflows/build.yml
Normal file
22
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,22 @@
|
||||
name: Build Nginx and PHP image
|
||||
run-name: Build Nginx and PHP image 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
|
||||
- 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/nginx-php:latest -t ownercz/nginx-php:${{env.GITHUB_SHA}} .
|
||||
docker push ownercz/nginx-php
|
Loading…
Reference in New Issue
Block a user