Skip to content

Commit

Permalink
feat: update CI and Docker workflows for publishing and image pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Sep 24, 2024
1 parent 877534d commit c115ba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
permissions:
packages: write
contents: read
#

steps:
- uses: actions/checkout@v4

- name: Build image
run: sudo docker build . --file Dockerfile.prod --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.ACCESS_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
#
- name: Push image
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
needs: [linux, musllinux, windows, macos, sdist]
environment: release
steps:
- uses: actions/download-artifact@v4
- name: Publish to PyPI If ref/tags/v* is pushed
Expand Down

0 comments on commit c115ba4

Please sign in to comment.