update environment tag

This commit is contained in:
James Swineson
2023-08-23 10:11:12 +08:00
parent 979780c8d5
commit 9e1f2c70cc

View File

@@ -21,12 +21,14 @@ jobs:
-
name: Login to Docker Hub
uses: docker/login-action@v2
environment: "Docker Hub"
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
environment: "Docker Hub"
with:
file: ./Dockerfile.${{ matrix.variant }}
tags: m13253/dns-over-https-${{ matrix.variant }}:latest
@@ -35,5 +37,8 @@ jobs:
name: Logout from Docker Hub
uses: docker/login-action@v2
if: always()
environment: "Docker Hub"
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
logout: true