Update docker-image.yml

This commit is contained in:
Beeant 2022-06-05 18:33:24 +08:00 committed by GitHub
parent db0bf2133f
commit b784f2ddef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,12 +17,12 @@ jobs:
- name: Build the Docker image - name: Build the Docker image
run: docker build . --file Dockerfile --tag xbeeant/oo-unlimit:$(date +%s) run: docker build . --file Dockerfile --tag xbeeant/oo-unlimit:$(date +%s)
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v2.0.0
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }} password: ${{ secrets.DOCKER_TOKEN }}
- name: Build image and push to Docker Hub and GitHub Container Registry - name: Build image and push to Docker Hub and GitHub Container Registry
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3.0.0
with: with:
# relative path to the place where source code with Dockerfile is located # relative path to the place where source code with Dockerfile is located
context: ./ context: ./