From 6636e914b14cf557e5d9e0a29105f2b7e14e589f Mon Sep 17 00:00:00 2001 From: fabianlindfors Date: Sun, 21 Jan 2024 23:52:55 +0100 Subject: [PATCH] Add Github workflow for publishing to Docker manually --- .github/workflows/publish-docker.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish-docker.yaml diff --git a/.github/workflows/publish-docker.yaml b/.github/workflows/publish-docker.yaml new file mode 100644 index 0000000..a2b8fe3 --- /dev/null +++ b/.github/workflows/publish-docker.yaml @@ -0,0 +1,25 @@ +name: Publish Docker image + +on: + workflow_dispatch: + inputs: + version: + description: 'Version (without 'v' prefix)' + required: true + type: string + +jobs: + publish-docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Log in to Docker + env: + DOCKER_PASSWORD: ${{ secrets.DOCKER_ACCESS_TOKEN }} + run: | + docker login -u ${{ secrets.DOCKER_USER }} -p $DOCKER_PASSWORD + - name: Build Docker image + run: docker build . --tag ${{ secrets.DOCKER_USER }}/reshape:${{ inputs.version }} --tag ${{ secrets.DOCKER_USER }}/reshape:latest + - name: Push Docker image + run: docker push --all-tags ${{ secrets.DOCKER_USER }}/reshape