Skip to content

Set numpy to version 1.22.3 #54

Set numpy to version 1.22.3

Set numpy to version 1.22.3 #54

name: Docker build and push
on:
push:
branches:
- 'main'
tags:
- '*.*.*'
pull_request:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up SSH
uses: MrSquaare/ssh-setup-action@7bfdda6ef6839504e3a5b2625ad971b17461a0db # v3.0.0
with:
host: github.com
private-key: ${{ secrets.SSH_GITHUB_PPK }}
private-key-name: github-ppk
-
name: Build and push git hash
uses: docker/build-push-action@v5
with:
build-args: |
"SSH_PRIVATE_KEY=${{ secrets.SSH_GITHUB_PPK }}"
push: true
tags: nickswainston/meerpipe:${{ github.sha }}
-
name: Build and push latest
uses: docker/build-push-action@v5
with:
build-args: |
"SSH_PRIVATE_KEY=${{ secrets.SSH_GITHUB_PPK }}"
push: true
tags: nickswainston/meerpipe:latest
-
name: Build and push release
uses: docker/build-push-action@v5
if: github.event_name == 'release'
with:
build-args: |
"SSH_PRIVATE_KEY=${{ secrets.SSH_GITHUB_PPK }}"
push: true
tags: nickswainston/meerpipe:${{ github.ref_name }}