Aktualizovat .gitea/workflows/build.yml
Build nginx main / Explore-Gitea-Actions (push) Successful in 6m22s
Details
Build nginx main / Explore-Gitea-Actions (push) Successful in 6m22s
Details
This commit is contained in:
parent
1d8a20363f
commit
028fe856b2
|
@ -16,10 +16,12 @@ jobs:
|
||||||
apt-get update && apt-get install docker.io -y
|
apt-get update && apt-get install docker.io -y
|
||||||
- name: Build | Clone repository
|
- name: Build | Clone repository
|
||||||
run: |
|
run: |
|
||||||
ls -lah
|
git clone https://github.com/Ownercz/nginx-php8.x.git
|
||||||
|
cd nginx-php8.x && ls -lah
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
run: |
|
run: |
|
||||||
|
cd nginx-php8.x
|
||||||
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
|
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
|
||||||
ls -lah
|
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
|
docker push ownercz/nginx-main
|
Loading…
Reference in New Issue