Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/cargo/openssl-0.10.55
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilerd authored Jul 19, 2023
2 parents fb37237 + 22e3bd5 commit 32b45ea
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,66 @@ jobs:
tar: all
features: 'frontend'
token: ${{ secrets.GITHUB_TOKEN }}

docker-image-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: frontend install
run: yarn install
working-directory: ./frontend

- name: frontend build
run: yarn run build
working-directory: ./frontend

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

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

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
kilerd/zhang
ghcr.io/zhang-accounting/zhang
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 32b45ea

Please sign in to comment.