This commit is contained in:
xRain 2023-08-22 00:36:02 +08:00
parent b015c533b0
commit ea6609e5a8

View File

@ -15,5 +15,5 @@ runs:
echo "WORKDIR /home" >> Dockerfile echo "WORKDIR /home" >> Dockerfile
echo "ENTRYPOINT [\"./App\"]" >> Dockerfile echo "ENTRYPOINT [\"./App\"]" >> Dockerfile
docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} .
docker login ${{env.DOCKER_REGISTRY}} -u ${{github.actor}} -p ${{github.token}} docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}}
docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}