docker build

This commit is contained in:
AB
2021-08-23 01:16:27 +03:00
parent 6f48f116c9
commit 382cc56492

View File

@ -31,6 +31,41 @@ jobs:
with:
name: desubot.exe
path: ./target/release/desubot.exe
build-push-docker:
runs-on: ubuntu-latest
steps:
- name: Get the version (git tag)
id: get_version
run: |
echo ${GITHUB_REF/refs\/tags\/v/}
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
echo ::set-output name=FULL_TAG::${GITHUB_REF/refs\/tags\//}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
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:
push: true
tags: ultardesu/desubot:latest
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ultardesu/desubot:${{ steps.get_version.outputs.FULL_TAG }}
publish:
name: Publish release