From 426d1012bc99740f3be8de186c31ee653dc8679c Mon Sep 17 00:00:00 2001 From: DanGould Date: Sun, 20 Nov 2022 13:41:54 -0500 Subject: [PATCH] Push to dockerhub on tag v*.*.* --- .github/workflows/docker-release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/docker-release.yml diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml new file mode 100644 index 0000000..c197469 --- /dev/null +++ b/.github/workflows/docker-release.yml @@ -0,0 +1,26 @@ +on: + push: + tags: + - 'v*.*.*' + +env: + CARGO_TERM_COLOR: always + +jobs: + buildx: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: chaincase + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Dockerize + run: docker buildx build --platform linux/arm64,linux/amd64 --tag chaincase/nolooking:${{ env.RELEASE_VERSION }} --output type=registry . \ No newline at end of file