403 error tracking #87
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: If it builds, it probably works. | |
| on: | |
| push: | |
| branches: [ master, main, '**' ] | |
| pull_request: | |
| branches: [ master, main ] | |
| jobs: | |
| build-face-swap-cuda: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build the face-swap CUDA Docker image | |
| run: | | |
| GIT_COMMIT="${{ github.sha }}" | |
| GIT_MESSAGE="${{ github.event.head_commit.message }}" | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker build ./face-swap-component -f ./face-swap-component/Dockerfile-cuda --build-arg GIT_COMMIT="$GIT_COMMIT" --build-arg GIT_MESSAGE="$GIT_MESSAGE" -t ${{ secrets.REGISTRY }}/${{ github.actor }}/face-swap:latest-cuda --provenance=false | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker build ./face-swap-component -f ./face-swap-component/Dockerfile-cuda --build-arg GIT_COMMIT="$GIT_COMMIT" --build-arg GIT_MESSAGE="$GIT_MESSAGE" -t ${{ secrets.REGISTRY }}/${{ github.actor }}/face-swap:$BRANCH_NAME-cuda --provenance=false | |
| fi | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.TOKEN }} | |
| - name: Push the face-swap CUDA Docker image | |
| run: | | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/face-swap:latest-cuda | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/face-swap:$BRANCH_NAME-cuda | |
| fi | |
| build-face-swap-cpu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build the face-swap CPU Docker image | |
| run: | | |
| GIT_COMMIT="${{ github.sha }}" | |
| GIT_MESSAGE="${{ github.event.head_commit.message }}" | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker build ./face-swap-component -f ./face-swap-component/Dockerfile-cpu --build-arg GIT_COMMIT="$GIT_COMMIT" --build-arg GIT_MESSAGE="$GIT_MESSAGE" -t ${{ secrets.REGISTRY }}/${{ github.actor }}/face-swap:latest-cpu --provenance=false | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker build ./face-swap-component -f ./face-swap-component/Dockerfile-cpu --build-arg GIT_COMMIT="$GIT_COMMIT" --build-arg GIT_MESSAGE="$GIT_MESSAGE" -t ${{ secrets.REGISTRY }}/${{ github.actor }}/face-swap:$BRANCH_NAME-cpu --provenance=false | |
| fi | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.TOKEN }} | |
| - name: Push the face-swap CPU Docker image | |
| run: | | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/face-swap:latest-cpu | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/face-swap:$BRANCH_NAME-cpu | |
| fi | |
| build-telegram-bot: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build the telegram-bot Docker image | |
| run: | | |
| GIT_COMMIT="${{ github.sha }}" | |
| GIT_MESSAGE="${{ github.event.head_commit.message }}" | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker build ./telegram-bot --build-arg GIT_COMMIT="$GIT_COMMIT" --build-arg GIT_MESSAGE="$GIT_MESSAGE" -t ${{ secrets.REGISTRY }}/${{ github.actor }}/telegram-bot:latest --provenance=false | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker build ./telegram-bot --build-arg GIT_COMMIT="$GIT_COMMIT" --build-arg GIT_MESSAGE="$GIT_MESSAGE" -t ${{ secrets.REGISTRY }}/${{ github.actor }}/telegram-bot:$BRANCH_NAME --provenance=false | |
| fi | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.TOKEN }} | |
| - name: Push the telegram-bot Docker image | |
| run: | | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/telegram-bot:latest | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/telegram-bot:$BRANCH_NAME | |
| fi | |
| build-job-manager: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build the job-manager Docker image | |
| run: | | |
| GIT_COMMIT="${{ github.sha }}" | |
| GIT_MESSAGE="${{ github.event.head_commit.message }}" | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker build ./job-manager --build-arg GIT_COMMIT="$GIT_COMMIT" --build-arg GIT_MESSAGE="$GIT_MESSAGE" -t ${{ secrets.REGISTRY }}/${{ github.actor }}/job-manager:latest --provenance=false | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker build ./job-manager --build-arg GIT_COMMIT="$GIT_COMMIT" --build-arg GIT_MESSAGE="$GIT_MESSAGE" -t ${{ secrets.REGISTRY }}/${{ github.actor }}/job-manager:$BRANCH_NAME --provenance=false | |
| fi | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.TOKEN }} | |
| - name: Push the job-manager Docker image | |
| run: | | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/job-manager:latest | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/job-manager:$BRANCH_NAME | |
| fi | |
| build-pocketbase: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build the pocketbase Docker image | |
| run: | | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker build ./pocketbase -t ${{ secrets.REGISTRY }}/${{ github.actor }}/pocketbase:latest --provenance=false | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker build ./pocketbase -t ${{ secrets.REGISTRY }}/${{ github.actor }}/pocketbase:$BRANCH_NAME --provenance=false | |
| fi | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.TOKEN }} | |
| - name: Push the pocketbase Docker image | |
| run: | | |
| if [ "${{ github.ref }}" = "refs/heads/master" ] || [ "${{ github.ref }}" = "refs/heads/main" ]; then | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/pocketbase:latest | |
| else | |
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///') | |
| docker push ${{ secrets.REGISTRY }}/${{ github.actor }}/pocketbase:$BRANCH_NAME | |
| fi |