added the new version of DL_with_GPU #438
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hugo Build CI | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'master' | |
- 'staging' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: nelonoel/branch-name@v1 | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
- run: echo ${BRANCH_NAME} | |
- name: Set ENV vars | |
env: | |
BUCKET_NAME: ${{ secrets.BUCKET_NAME }} | |
BUCKET_NAME_STAGING: ${{ secrets.BUCKET_NAME_STAGING }} | |
DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }} | |
STAGING_DISTRIBUTION_ID: ${{ secrets.STAGING_DISTRIBUTION_ID }} | |
MAX_AGE: ${{ secrets.MAX_AGE }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: echo $BUCKET_NAME | |
- name: Get HUGO container | |
run: docker pull ghcr.io/uvarc/hugo-build:v2 | |
- name: Run HUGO container | |
run: docker run -e BRANCH=$BRANCH_NAME -e TRAVIS_BRANCH=$BRANCH_NAME -e BUCKET_NAME=${{ secrets.BUCKET_NAME }} -e DISTRIBUTION_ID=${{ secrets.DISTRIBUTION_ID }} -e BUCKET_NAME_STAGING=${{ secrets.BUCKET_NAME_STAGING }} -e STAGING_DISTRIBUTION_ID=${{ secrets.STAGING_DISTRIBUTION_ID }} -e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} -e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} -e MAX_AGE="3600" ghcr.io/uvarc/hugo-build:v2 /root/build-site.sh uvarc/rc-learning hugo-0.80.0-ext |