ansible(registry): pre-pull Drone images into local registry #13
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: Rust app | |
| # on: | |
| # push: | |
| # branches: ["main"] | |
| # pull_request: | |
| # branches: ["main"] | |
| # jobs: | |
| # build-and-deploy: | |
| # runs-on: ubuntu-latest | |
| # permissions: | |
| # packages: write | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Check for unverified commits | |
| # uses: nadock/verified_commits_check@v1 | |
| # - name: Build | |
| # run: cargo build --verbose | |
| # working-directory: apps/backend/task-api | |
| # - name: Run tests | |
| # run: cargo test --verbose | |
| # working-directory: apps/backend/task-api | |
| # - name: log into GitHub container registry | |
| # uses: docker/login-action@v2 | |
| # with: | |
| # registry: ghcr.io | |
| # username: ${{ github.actor }} | |
| # password: ${{ secrets.GITHUB_TOKEN }} | |
| # - name: downcase REPO | |
| # run: echo "Not needed, using fixed repo name." | |
| # - name: Build and Push Docker Image | |
| # uses: docker/build-push-action@v4 | |
| # with: | |
| # context: apps/backend/task-api | |
| # file: apps/backend/task-api/Dockerfile | |
| # push: true | |
| # tags: | | |
| # ghcr.io/micheal-ndoh/task-api:latest |