update docker file to use cargo build #21
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: Build on push | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build image | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
id: qemu | |
- name: Setup Docker buildx action | |
uses: docker/setup-buildx-action@v2 | |
id: buildx | |
- name: Run Docker buildx | |
run: | | |
docker buildx build \ | |
--platform linux/amd64 \ | |
--no-cache -t niteshbalusu/rustdress:amd64 --push . |