Update docker-image.yml #426
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish dashboard and pixiu aio images | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [master] | |
env: | |
# Use docker.io for Docker Hub if empty | |
REGISTRY: harbor.cloud.pixiuio.com | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get short commit hash | |
run: | | |
echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
echo "TIMESTAMP=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login in dockerhub | |
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ secrets.DOCKER_NAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push dashboard image | |
run: make push | |
- name: Build and push pixiu aio image | |
run: make push-aio |