Skip to content

Commit

Permalink
修改自述文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-SummerFlower committed Apr 23, 2024
1 parent 6bbe4a9 commit bbf2eb0
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,37 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build image
run: |
docker build -t picture_api -f ./dockerfile .
- name: Export image
run: |
docker save picture_api | gzip > picture_api.tar.gz
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS }}
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
body: ${{ github.event.head_commit.message }}

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./picture_api.tar.gz
asset_name: picture_api.tar.gz
asset_content_type: application/gzip
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build image
run: |
docker build -t picture_api -f ./dockerfile .
- name: Export image
run: |
docker save picture_api | gzip > picture_api.tar.gz
- name: Create GitHub Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS }}
with:
tag_name: ""
release_name: Release ${{ github.sha }}
body: ${{ github.event.head_commit.message }}

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./picture_api.tar.gz
asset_name: picture_api.tar.gz
asset_content_type: application/gzip

0 comments on commit bbf2eb0

Please sign in to comment.