Skip to content

Commit

Permalink
Fix new docker workflowi again
Browse files Browse the repository at this point in the history
  • Loading branch information
fsologureng committed Sep 26, 2023
1 parent 22def94 commit b57fb3d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/docker_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ 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
username: eolito
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 }}

0 comments on commit b57fb3d

Please sign in to comment.