From b276bc982d509fd8e31ab52aa4ddbcaed6a77d31 Mon Sep 17 00:00:00 2001 From: Konstantinos Livieratos Date: Fri, 14 Oct 2022 21:49:54 +0200 Subject: [PATCH] Added dockerhub actions workflow --- .github/workflows/dockerhub.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/dockerhub.yaml diff --git a/.github/workflows/dockerhub.yaml b/.github/workflows/dockerhub.yaml new file mode 100644 index 0000000..ae275de --- /dev/null +++ b/.github/workflows/dockerhub.yaml @@ -0,0 +1,27 @@ +name: Dockerhub Build + +on: + workflow_dispatch: + inputs: + tag: + type: string + required: true + +jobs: + docker: + runs-on: ubuntu-latest + env: + DOCKERHUB_USERNAME: koslib + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ env.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v3 + with: + push: true + tags: koslib/ga-helm-eks:latest, koslib/ga-helm-eks:{{ github.event.inputs.tag }} \ No newline at end of file