From f3b283e11b690216da5114833d31897cb164fe1a Mon Sep 17 00:00:00 2001 From: genric Date: Mon, 28 Oct 2024 10:18:32 +0100 Subject: [PATCH] add manual push latest image to dockerhub (#2) add manual push latest image to dockerhub --- .github/workflows/dockerhub.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/dockerhub.yml diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml new file mode 100644 index 0000000..0a3266e --- /dev/null +++ b/.github/workflows/dockerhub.yml @@ -0,0 +1,26 @@ +name: dockerhub + +on: + workflow_dispatch: + +jobs: + push_latest: + name: Push latest dockerhub image + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - name: Build sdist + run: pipx run build --sdist + - name: Check dist metadata + run: pipx run twine check dist/* + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.BBPBUILDBOT_DOCKERHUB_USER }} + password: ${{ secrets.BBPBUILDBOT_DOCKERHUB_PASSWORD }} + - name: Build and Push Docker Image + uses: docker/build-push-action@v5 + with: + push: true + tags: bluebrain/bbp-workflow:latest