xiaomusic/.github/workflows/ci.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2024-02-04 06:11:40 +00:00
name: ci
on:
push:
branches:
- "*"
2024-02-04 06:11:40 +00:00
workflow_dispatch:
jobs:
build-image:
runs-on: ubuntu-latest
# run unless event type is pull_request
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
2024-07-14 10:27:35 +00:00
platforms: linux/amd64,linux/arm64,linux/arm/v7
2024-02-04 06:11:40 +00:00
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:${{ github.ref_name }}
2024-07-05 13:22:36 +00:00
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2024-07-05 14:15:14 +00:00
repository: hanxi/xiaomusic