diff --git a/.env.example b/.env.example index 4cabb66..aef8a51 100644 --- a/.env.example +++ b/.env.example @@ -7,4 +7,6 @@ CMS_ADMIN_USER= CMS_ADMIN_PASSWORD= CMS_RANKING_USER=ranking -CMS_RANKING_PASSWORD= \ No newline at end of file +CMS_RANKING_PASSWORD= + +# CMS_CONTEST_ID=1 # If CMS_CONTEST_ID not specified, contest will list all. \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..94edf14 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: CMS Base Image + +on: + push: + branches: [ "master", "feature/github-actions" ] + # paths: + # - 'images/**' + +jobs: + base-build: + name: CMS Base Image Build + runs-on: ubuntu-20.04 + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + with: + submodules: true + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: CMS Base Image Build & push + uses: docker/build-push-action@v3 + with: + file: images/cms-base/Dockerfile + context: . + push: true + tags: tico88612/cms-base:latest diff --git a/.gitignore b/.gitignore index 4c49bd7..8efe85b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .env +data/** \ No newline at end of file