diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..dcb53b3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: New release + +on: + push: + tags: + - v** + +jobs: + release: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ghcr.io/stat-utils/stat-fastapi:latest