Skip to content

Commit

Permalink
Update release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed May 20, 2024
1 parent 80889d7 commit 177f09b
Showing 1 changed file with 48 additions and 49 deletions.
97 changes: 48 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ jobs:
# arch: aarch64

runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: olegtarasov/[email protected]
id: tagName
Expand All @@ -82,7 +81,7 @@ jobs:
sudo apt-get install musl-tools
- name: Setup | Rust
uses: actions-rs/toolchain@v1.0.7
uses: dtolnay/rust-toolchain@v1.52.1
with:
toolchain: nightly
override: true
Expand Down Expand Up @@ -154,49 +153,49 @@ jobs:
ls -lha release-dist
for file in release-dist/**/*; do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: release-dist/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docker:
runs-on: ubuntu-latest
needs: github_release
steps:
- uses: olegtarasov/[email protected]
id: tagName

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

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

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: |
huacnlee/autocorrect:latest
huacnlee/autocorrect:${{ steps.tagName.outputs.tag }}
- name: Build and push (reviewdog)
uses: docker/build-push-action@v2
with:
push: true
file: ./Dockerfile.reviewdog
tags: |
huacnlee/autocorrect:latest-reviewdog
huacnlee/autocorrect:${{ steps.tagName.outputs.tag }}-reviewdog
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# - name: Publish
# uses: softprops/action-gh-release@v1
# with:
# files: release-dist/**/*
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# docker:
# runs-on: ubuntu-latest
# needs: github_release
# steps:
# - uses: olegtarasov/[email protected]
# id: tagName

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1

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

# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Build and push
# id: docker_build
# uses: docker/build-push-action@v2
# with:
# push: true
# tags: |
# huacnlee/autocorrect:latest
# huacnlee/autocorrect:${{ steps.tagName.outputs.tag }}

# - name: Build and push (reviewdog)
# uses: docker/build-push-action@v2
# with:
# push: true
# file: ./Dockerfile.reviewdog
# tags: |
# huacnlee/autocorrect:latest-reviewdog
# huacnlee/autocorrect:${{ steps.tagName.outputs.tag }}-reviewdog

# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 177f09b

Please sign in to comment.