- name: login to docker hub\r
run: |\r
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin\r
- - name: build the image\r
+ - name: build and push the image (master branch)\r
run: |\r
docker buildx build \\r
--push \\r
--tag neilpang/acme.sh:latest \\r
--platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386 .\r
+ if: ${{ github.ref == 'refs/heads/master' }}\r
+ - name: build and push the image (dev branch)\r
+ run: |\r
+ docker buildx build \\r
+ --push \\r
+ --tag neilpang/acme.sh:dev \\r
+ --platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386 .\r
+ if: ${{ github.ref == 'refs/heads/dev' }}\r