Aktualizovat .gitea/workflows/build.yml
Build Nginx and PHP image / Build-Minecraft-Stats-Image (push) Successful in 41s Details

This commit is contained in:
Radim Lipovčan 2024-05-04 21:11:02 +02:00
parent ba9963baf3
commit 00039ae76f
1 changed files with 6 additions and 2 deletions

View File

@ -15,13 +15,17 @@ jobs:
run: |
git clone https://github.com/Ownercz/ubuntu-nginx-php.git .
apt-get update && apt-get install docker.io -y
- name: Docker | Build image and login to Docker Hub with publication
- name: Docker | Build u22
run: |
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
ls -lah
docker build -f Dockerfile-u22 -t ownercz/nginx-php:u22 -t ownercz/nginx-php:u22-${{env.GITHUB_SHA}} .
docker push ownercz/nginx-php:u22
docker push ownercz/nginx-php:u22-${{env.GITHUB_SHA}}
docker push ownercz/nginx-php:u22-${{env.GITHUB_SHA}}
- name: Docker | Build u24
run: |
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
ls -lah
docker build -f Dockerfile-u24 -t ownercz/nginx-php:u24 -t ownercz/nginx-php:u24-${{env.GITHUB_SHA}} .
docker push ownercz/nginx-php:u24
docker push ownercz/nginx-php:u24-${{env.GITHUB_SHA}}