Skip to content

Commit

Permalink
ci: move docker job to release workflow (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Jintao Zhang <[email protected]>
  • Loading branch information
tao12345666333 authored Sep 21, 2023
1 parent 1ba6c26 commit 9f31a1e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/docker.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,28 @@ jobs:
with:
name: dist
path: dist/*

docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: api7/adc:${{ github.ref_name }}

0 comments on commit 9f31a1e

Please sign in to comment.