From 4957d9a9a2854f04ddd90ab129729fd7d4eed373 Mon Sep 17 00:00:00 2001 From: Avi-Robusta <97387909+Avi-Robusta@users.noreply.github.com> Date: Sun, 28 Jul 2024 11:51:55 +0300 Subject: [PATCH] added dockerhub release (#4) --- .github/workflows/release.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 69710dc..1057ee5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -66,12 +66,19 @@ jobs: poetry install --no-dev poetry publish --build -u __token__ -p ${{ secrets.PYPI_PROJECT_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Release Docker CLI if: "!github.event.release.prerelease" run: |- docker buildx build \ --platform linux/arm64,linux/amd64 \ --tag us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli:${{env.RELEASE_VER}} \ + --tag robustadev/robusta-cli:${{env.RELEASE_VER}} \ --tag us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli \ --push \ --file Dockerfile \ @@ -85,4 +92,4 @@ jobs: --tag us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli:${{env.RELEASE_VER}} \ --push \ --file Dockerfile \ - . \ No newline at end of file + .