diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a516f92..3275087 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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 \ No newline at end of file