feat[servers]: add upgrade #33
Workflow file for this run
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: Build and Test | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build-docker-image: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Set up QEMU for multi-platform support | |
| uses: docker/setup-qemu-action@v2 | |
| with: | |
| platforms: linux/amd64,linux/arm64 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.TOKEN_GITHUB }} | |
| - name: Build and Push Docker Image | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: | | |
| ghcr.io/erfjab/servermanagerbot:pr-${{ github.event.pull_request.number }} | |
| - name: Print Success Message | |
| if: success() | |
| run: | | |
| echo "✅ Docker Image built successfully!" | |
| echo "You can test it using the following command:" | |
| echo "docker run -it --rm ghcr.io/erfjab/servermanagerbot:pr-${{ github.event.pull_request.number }}" | |
| - name: Print Failure Message | |
| if: failure() | |
| run: | | |
| echo "❌ Docker Image build failed! Please check the logs for more details." |