Feat/new checks (#2465) #14
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: Backend EE Docker Release | |
| on: | |
| push: | |
| tags: | |
| - 'backend-ee/v*' | |
| permissions: | |
| contents: write | |
| packages: write | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }}/digger-backend-ee | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Derive version | |
| id: meta | |
| run: | | |
| TAG="${GITHUB_REF_NAME}" # e.g. backend-ee/v1.2.3 | |
| VERSION="${TAG##*/}" # v1.2.3 | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata | |
| id: docker-meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=raw,value=${{ steps.meta.outputs.version }} | |
| type=ref,event=tag | |
| type=raw,value=latest | |
| - uses: depot/setup-action@v1 | |
| - uses: depot/build-push-action@v1 | |
| with: | |
| project: kcld4zgwzx | |
| token: ${{ secrets.DEPOT_TOKEN }} | |
| context: . | |
| file: ./Dockerfile_backend_ee | |
| push: true | |
| platforms: linux/amd64,linux/arm64 | |
| tags: ${{ steps.docker-meta.outputs.tags }} | |
| labels: ${{ steps.docker-meta.outputs.labels }} | |
| build-args: | | |
| COMMIT_SHA=${{ github.sha }} | |
| VERSION=${{ steps.meta.outputs.version }} | |
| create-release: | |
| needs: [build-and-push] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Derive version | |
| id: meta | |
| run: | | |
| TAG="${GITHUB_REF_NAME}" # e.g. backend-ee/v1.2.3 | |
| VERSION="${TAG##*/}" # v1.2.3 | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: Digger Backend EE ${{ steps.meta.outputs.version }} | |
| body: | | |
| ## Digger Backend (Enterprise Edition) ${{ steps.meta.outputs.version }} | |
| Terraform orchestration service with advanced features and multi-VCS support. | |
| ### Docker Image | |
| ```bash | |
| docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} | |
| ``` | |
| draft: false | |
| prerelease: false | |