diff --git a/.github/workflows/cloud-run.yml b/.github/workflows/cloud-run.yml index f8522cffc..540f322f9 100644 --- a/.github/workflows/cloud-run.yml +++ b/.github/workflows/cloud-run.yml @@ -91,16 +91,6 @@ jobs: shell: bash run: REVISION=$(gcloud run revisions list --platform managed --region "$RUN_REGION" --service $SERVICE_NAME --sort-by ~deployed --quiet | sed -n '2 p' | awk '{print $2}'); echo "::set-output name=version::${REVISION/webhooky-/}" id: extract_version - - name: Create GitHub Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ steps.extract_sha.outputs.hash }} - release_name: ${{ steps.extract_version.outputs.version }} - draft: false - prerelease: false - name: Create Sentry release uses: getsentry/action-release@v1 env: diff --git a/.github/workflows/docker-image-cfcert.yml b/.github/workflows/docker-image-cfcert.yml deleted file mode 100644 index 93277a59c..000000000 --- a/.github/workflows/docker-image-cfcert.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: docker-image-cfcert -on: - pull_request: - paths: - - 'cfcert/**.rs' - - 'cfcert/Cargo.toml' - - 'Cargo.lock' - - .github/workflows/docker-image-cfcert.yml - - rust-toolchain - - 'cfcert/Dockerfile' - push: - branches: master - paths: - - 'cfcert/**.rs' - - 'cfcert/Cargo.toml' - - 'Cargo.lock' - - .github/workflows/docker-image-cfcert.yml - - rust-toolchain - - 'cfcert/Dockerfile' - workflow_dispatch: - inputs: -concurrency: - group: docker-image-cfcert-${{ github.ref }} - cancel-in-progress: true -jobs: - docker-image: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Cleanup unused space - shell: bash - run: | - set -x - df -h / - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/microsoft - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf /usr/local/.ghcup - sudo rm -rf /usr/lib/jvm - sudo rm -rf /usr/local/graalvm - sudo rm -rf /usr/local/share/powershell - sudo rm -rf /usr/share/swift - df -h / - - name: Set Swap Space - uses: pierotofy/set-swap-space@master - with: - swap-size-gb: 10 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - # - name: Cache Docker layers - # uses: actions/cache@v3 - # with: - # path: /tmp/.buildx-cache - # key: ${{ runner.os }}-buildx-cfcert-${{ github.ref }} - # restore-keys: | - # ${{ runner.os }}-buildx-cfcert-master - - name: Login to GitHub Packages Docker Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push - cfcert - uses: docker/build-push-action@v3 - with: - push: ${{ ! startsWith(github.ref, 'refs/heads/dependabot') && github.event_name != 'pull_request' }} - file: ./cfcert/Dockerfile - tags: ghcr.io/${{ github.repository_owner }}/cio:cfcert - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache,mode=max - - name: Report remaining disk - shell: bash - run: | - set -x - df -h / diff --git a/.github/workflows/docker-image-cio.yml b/.github/workflows/docker-image-cio.yml deleted file mode 100644 index 8cb4b07c4..000000000 --- a/.github/workflows/docker-image-cio.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: docker-image-cio -on: - pull_request: - paths: - - '**.rs' - - '*/Cargo.toml' - - 'Cargo.lock' - - .github/workflows/docker-image-cio.yml - - rust-toolchain - - '*/Dockerfile' - push: - branches: master - paths: - - '**.rs' - - '*/Cargo.toml' - - 'Cargo.lock' - - .github/workflows/docker-image-cio.yml - - rust-toolchain - - '*/Dockerfile' - workflow_dispatch: - inputs: -concurrency: - group: docker-image-cio-${{ github.ref }} - cancel-in-progress: true -jobs: - docker-image: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Cleanup unused space - shell: bash - run: | - set -x - df -h / - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/microsoft - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf /usr/local/.ghcup - sudo rm -rf /usr/lib/jvm - sudo rm -rf /usr/local/graalvm - sudo rm -rf /usr/local/share/powershell - sudo rm -rf /usr/share/swift - df -h / - - name: Set Swap Space - uses: pierotofy/set-swap-space@master - with: - swap-size-gb: 10 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Cache Docker layers - uses: actions/cache@v3 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-cio-${{ github.ref }} - restore-keys: | - ${{ runner.os }}-buildx-cio-master - - name: Login to GitHub Packages Docker Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push - cio - uses: docker/build-push-action@v3 - with: - push: ${{ ! startsWith(github.ref, 'refs/heads/dependabot') && github.event_name != 'pull_request' }} - file: ./cio/Dockerfile - tags: ghcr.io/${{ github.repository_owner }}/cio:latest - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache,mode=max - - name: Report remaining disk - shell: bash - run: | - set -x - df -h / diff --git a/.github/workflows/docker-image-webhooky.yml b/.github/workflows/docker-image-webhooky.yml deleted file mode 100644 index 2b7631b83..000000000 --- a/.github/workflows/docker-image-webhooky.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: docker-image-webhooky -on: - pull_request: - paths: - - '**.rs' - - '*/Cargo.toml' - - 'Cargo.lock' - - .github/workflows/docker-image-webhooky.yml - - rust-toolchain - - '*/Dockerfile' - push: - branches: master - paths: - - '**.rs' - - '*/Cargo.toml' - - 'Cargo.lock' - - .github/workflows/docker-image-webhooky.yml - - rust-toolchain - - '*/Dockerfile' - workflow_dispatch: - inputs: -concurrency: - group: docker-image-webhooky-${{ github.ref }} - cancel-in-progress: true -jobs: - docker-image: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Cleanup unused space - shell: bash - run: | - set -x - df -h / - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/microsoft - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf /usr/local/.ghcup - sudo rm -rf /usr/lib/jvm - sudo rm -rf /usr/local/graalvm - sudo rm -rf /usr/local/share/powershell - sudo rm -rf /usr/share/swift - df -h / - - name: Set Swap Space - uses: pierotofy/set-swap-space@master - with: - swap-size-gb: 10 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Cache Docker layers - uses: actions/cache@v3 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-webhooky-${{ github.ref }} - restore-keys: | - ${{ runner.os }}-buildx-webhooky-master - - name: Login to GitHub Packages Docker Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push - webhooky - uses: docker/build-push-action@v3 - with: - push: ${{ ! startsWith(github.ref, 'refs/heads/dependabot') && github.event_name != 'pull_request' }} - file: ./webhooky/Dockerfile - tags: ghcr.io/${{ github.repository_owner }}/cio:webhooky - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache,mode=max - - name: Report remaining disk - shell: bash - run: | - set -x - df -h /