Update main.yml

This commit is contained in:
Marilynn Paranada 2024-08-04 18:25:16 +08:00 committed by GitHub
parent ab847ee2fa
commit f809302262
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,16 +10,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4 # 更新到 v4
- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3 # 更新到 v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5 # 更新到 v5
with:
push: true
tags: mos98/ok_moss_best:latest