ci(deps): remove Docker build jobs from workflows
This commit is contained in:
@@ -33,36 +33,3 @@ jobs:
|
||||
|
||||
- name: Test
|
||||
run: dotnet test GitCaddy.AI.sln -c Release --no-build --verbosity normal
|
||||
|
||||
docker:
|
||||
runs-on: macos-latest
|
||||
needs: build
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Configure git for redirects
|
||||
run: |
|
||||
git config --global http.https://git.marketally.com/.extraheader "AUTHORIZATION: basic $(echo -n 'x-access-token:${{ github.token }}' | base64 -w0)"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ secrets.REGISTRY_URL }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.REGISTRY_URL }}/gitcaddy/gitcaddy-ai:latest
|
||||
${{ secrets.REGISTRY_URL }}/gitcaddy/gitcaddy-ai:${{ github.sha }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
@@ -56,41 +56,3 @@ jobs:
|
||||
publish/*.zip
|
||||
nupkg/*.nupkg
|
||||
generate_release_notes: true
|
||||
|
||||
docker:
|
||||
runs-on: macos-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Configure git for redirects
|
||||
run: |
|
||||
git config --global http.https://git.marketally.com/.extraheader "AUTHORIZATION: basic $(echo -n 'x-access-token:${{ github.token }}' | base64 -w0)"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get version from tag
|
||||
id: version
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ secrets.REGISTRY_URL }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.REGISTRY_URL }}/gitcaddy/gitcaddy-ai:latest
|
||||
${{ secrets.REGISTRY_URL }}/gitcaddy/gitcaddy-ai:${{ steps.version.outputs.VERSION }}
|
||||
build-args: |
|
||||
BUILD_CONFIGURATION=Release
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
Reference in New Issue
Block a user