diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml new file mode 100644 index 0000000000..8d14faf9a0 --- /dev/null +++ b/.github/workflows/image.yml @@ -0,0 +1,44 @@ +name: shisui latest image + +on: + push: + branches: [ portal ] + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: write + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + + push_image_to_github: + name: Push Docker image to Github + runs-on: ubuntu-latest + permissions: write-all + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile.portal + push: true + tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1256ee1632..09d4a5fbd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: shisui image +name: shisui release image on: release: