diff --git a/.github/workflows/docker_creation.yaml b/.github/workflows/docker_creation.yaml new file mode 100644 index 0000000..374f800 --- /dev/null +++ b/.github/workflows/docker_creation.yaml @@ -0,0 +1,45 @@ +name: Docker Creation + +on: + push: + tags: ["v*.*.*"] + + +env: + IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/morphq + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + images: ${{ env.IMAGE_NAME }} + tags: | + type=semver,pattern={{raw}} + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} +