From e3c11759c5b808ad1c1cf6310fe11c12d7d12919 Mon Sep 17 00:00:00 2001 From: boubkerbribri Date: Tue, 8 Aug 2023 11:08:02 +0200 Subject: [PATCH] Add workflow to publish a specific version --- .github/workflows/publish-specific.yml | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/publish-specific.yml diff --git a/.github/workflows/publish-specific.yml b/.github/workflows/publish-specific.yml new file mode 100644 index 00000000..3b52f053 --- /dev/null +++ b/.github/workflows/publish-specific.yml @@ -0,0 +1,36 @@ +--- +name: Publish specific version + +on: + workflow_dispatch: + inputs: + version: + description: PrestaShop Version to publish + type: string + required: true + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - uses: actions/checkout@v2 + + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Build Docker images + run: ./prestashop_docker.py --quiet tag build ${{ inputs.version }} + + - name: Push Docker images + run: ./prestashop_docker.py --quiet tag push ${{ inputs.version }}