|
|
@@ -0,0 +1,40 @@
|
|
|
+name: Build current version + push to DockerHub
|
|
|
+
|
|
|
+on:
|
|
|
+ release:
|
|
|
+ types: [published]
|
|
|
+
|
|
|
+jobs:
|
|
|
+ docker:
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Docker meta
|
|
|
+ id: docker_meta
|
|
|
+ uses: crazy-max/ghaction-docker-meta@v1
|
|
|
+ with:
|
|
|
+ images: wernerfred/rainloop
|
|
|
+ tag-semver: |
|
|
|
+ {{version}}
|
|
|
+ {{major}}.{{minor}}
|
|
|
+ - name: Set up QEMU
|
|
|
+ uses: docker/setup-qemu-action@v1
|
|
|
+ with:
|
|
|
+ image: tonistiigi/binfmt:latest
|
|
|
+ platforms: amd64
|
|
|
+ - name: Set up Docker Buildx
|
|
|
+ uses: docker/setup-buildx-action@v1
|
|
|
+ - name: Login to DockerHub
|
|
|
+ uses: docker/login-action@v1
|
|
|
+ with:
|
|
|
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
+ - name: Build and push
|
|
|
+ id: docker_build
|
|
|
+ uses: docker/build-push-action@v2
|
|
|
+ with:
|
|
|
+ context: .
|
|
|
+ file: ./Dockerfile
|
|
|
+ platforms: linux/amd64
|
|
|
+ push: true
|
|
|
+ tags: ${{ steps.docker_meta.outputs.tags }}
|