add docker pull step.
All checks were successful
Deploy / PullDocker (push) Successful in 1m40s
Deploy / Build (push) Successful in 57s

This commit is contained in:
amass 2024-06-30 18:47:46 +08:00
parent de81f8dc7a
commit b383b8a870

View File

@ -2,6 +2,17 @@ name: Deploy
run-name: build and deploy app to server. run-name: build and deploy app to server.
on: [push] on: [push]
jobs: jobs:
PullDocker:
runs-on: [ubuntu-latest, ubuntu-24.04]
steps:
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: frp-by1.wwvvww.cn:45288
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Pull Docker image
run: docker pull frp-by1.wwvvww.cn:45288/ubuntu_dev:22.04
Build: Build:
runs-on: [ubuntu-latest, ubuntu-24.04] runs-on: [ubuntu-latest, ubuntu-24.04]
container: container: