From ba870fb53fc260a7f5e8a463d729db6f78e47eb7 Mon Sep 17 00:00:00 2001 From: Ryan Lelek Date: Mon, 6 Nov 2023 13:25:25 -0600 Subject: [PATCH] Add: Action - container build and release --- .github/workflows/docker-release.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 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 00000000..71420ad5 --- /dev/null +++ b/.github/workflows/docker-release.yml @@ -0,0 +1,34 @@ +--- +# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ + +name: Docker Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Release Version' + required: true + default: 'latest' + +jobs: + + build: + + runs-on: ubuntu-latest + environment: Docker + + steps: + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v4 + with: + #context: . + push: true + tags: "raneto/raneto:${{ github.event.inputs.version }}"