Aktualizovat .gitea/workflows/build.yml
Build nginx main / Explore-Gitea-Actions (push) Successful in 6m22s Details

This commit is contained in:
Radim Lipovčan 2023-12-14 07:38:23 +01:00
parent 1d8a20363f
commit 028fe856b2
1 changed files with 4 additions and 2 deletions

View File

@ -16,10 +16,12 @@ jobs:
apt-get update && apt-get install docker.io -y
- name: Build | Clone repository
run: |
ls -lah
git clone https://github.com/Ownercz/nginx-php8.x.git
cd nginx-php8.x && ls -lah
- name: Login to Docker Hub
run: |
cd nginx-php8.x
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
ls -lah
docker build -t ownercz/nginx-main:latest .
docker build -t ownercz/nginx-main:latest -t ownercz/nginx-main:$(git rev-parse --short=10 HEAD) .
docker push ownercz/nginx-main