mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-25 02:56:38 +00:00
update action
This commit is contained in:
parent
d3f4a62986
commit
56fa760175
1 changed files with 6 additions and 6 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
|
@ -21,8 +21,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build container
|
||||
uses: docker/build-push-action@v6
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
|
|
@ -33,28 +32,29 @@ jobs:
|
|||
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Login DockerHub
|
||||
- name: Login
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and Push to DockerHub
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
no-cache: true
|
||||
no-cache: false
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
tags: |
|
||||
${{ env.IMAGE_NAME_FULL }}:${{ github.ref_name }}
|
||||
|
||||
- name: ssh pipelines
|
||||
- name: Deploy
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
env:
|
||||
BRANCH_NAME: ${{ github.ref_name }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue