Upgrade per Rojeh vulnerability #23
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
| # CDST Website Imaging | |
| # ==================== | |
| # | |
| # This workflow builds and registers images of Data Science website. | |
| --- | |
| name: Data Science Website Imaging | |
| # Triggers | |
| # -------- | |
| # | |
| # Run on any push to the docker or src | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'docker/**' | |
| - 'src/**' | |
| - 'requirements.txt' | |
| - '.dockerignore' | |
| # Jobs | |
| # ---- | |
| # | |
| # What to do. | |
| jobs: | |
| imaging: | |
| name: 🏞 Data Science Website Imaging | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| name: 💳 Docker Hub Identification | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{secrets.DOCKERHUB_USERNAME}} | |
| password: ${{secrets.DOCKERHUB_TOKEN}} | |
| - | |
| name: 📚 Repository Checkout | |
| uses: actions/checkout@v3 | |
| - | |
| name: 🎰 QEMU Multiple Machine Emulation | |
| uses: docker/setup-qemu-action@v2 | |
| - | |
| name: 🚢 Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - | |
| name: 🧱 Image Construction and Publication | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: . | |
| file: docker/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{secrets.DOCKERHUB_USERNAME}}/datasci:latest | |
| ... | |
| # -*- mode: YAML; tab-width: 4 -*- |