diff --git a/.github/workflows/docker_v2.yml b/.github/workflows/docker_v2.yml index 824400c8..e817e289 100644 --- a/.github/workflows/docker_v2.yml +++ b/.github/workflows/docker_v2.yml @@ -17,16 +17,16 @@ jobs: - name: Define release version # TODO: parameterize release name - run: echo "RELEASE_NAME=koa" >> $GITHUB_ENV + run: echo "RELEASE-NAME=koa" >> $GITHUB_ENV - name: Build Open edX - run: docker build . --file ./Dockerfile --tag ghcr.io/eol-uchile/edx-staging:${{ env.RELEASE_NAME }} --target base + run: docker build . --file ./Dockerfile --tag ghcr.io/eol-uchile/edx-staging:${{ env.RELEASE-NAME }} --target base - name: Build Static files for OpenedX S3 - run: docker build . --file ./Dockerfile --tag ghcr.io/eol-uchile/edx-staging:s3-static-${{ env.RELEASE_NAME }} --target s3 + run: docker build . --file ./Dockerfile --tag ghcr.io/eol-uchile/edx-staging:s3-static-${{ env.RELEASE-NAME }} --target s3 - name: Login to GitHub Container Registry - if: github.ref == format('{0}{1}', 'refs/heads/eol-release/', ${{ env.RELEASE_NAME }}) + if: github.ref == format('{0}{1}', 'refs/heads/eol-release/', ${{ env.RELEASE-NAME }}) uses: docker/login-action@v3 with: registry: ghcr.io @@ -34,7 +34,7 @@ jobs: password: ${{ secrets.CR_PAT }} - name: Push - if: github.ref == format('{0}{1}', 'refs/heads/eol-release/', ${{ env.RELEASE_NAME }}) + if: github.ref == format('{0}{1}', 'refs/heads/eol-release/', ${{ env.RELEASE-NAME }}) run: | - docker push ghcr.io/eol-uchile/edx-staging:${{ env.RELEASE_NAME }} - docker push ghcr.io/eol-uchile/edx-staging:s3-static-${{ env.RELEASE_NAME }} + docker push ghcr.io/eol-uchile/edx-staging:${{ env.RELEASE-NAME }} + docker push ghcr.io/eol-uchile/edx-staging:s3-static-${{ env.RELEASE-NAME }}