Update docker-image.yml

This commit is contained in:
Mohammad Naghavi 2022-02-07 18:12:21 +01:00 committed by GitHub
parent 3e9a16ff18
commit 2c9b50c16b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,17 +18,10 @@ jobs:
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3.6.2
with:
images: mohamnag/nginx-file-browser
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v2.9.0 uses: docker/build-push-action@v2.9.0
with: with:
context: . context: .
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: mohamnag/nginx-file-browser:latest
labels: ${{ steps.meta.outputs.labels }}