Skip to content

Add example of template file for resource (#395) #127

Add example of template file for resource (#395)

Add example of template file for resource (#395) #127

Workflow file for this run

name: Build docker image and push to Docker Hub
on:
push:
tags:
- 'v*'
jobs:
build-n-push:
name: Build docker image and push to Docker Hub
if: github.repository == 'deepmodeling/dpdispatcher'
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
run: |
docker buildx build --platform linux/arm64,linux/amd64 -t dptechnology/dpdispatcher:${{ github.ref_name }} -t dptechnology/dpdispatcher:latest --push .