Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,19 +268,33 @@ jobs:
repository: ${{ github.event.repository.full_name }}
fetch-depth: 0

- name: Check for Dockerfile
id: check-dockerfile
run: |
if [ -f "_caller/Dockerfile" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
echo "Dockerfile found, continuing with job"
else
echo "exists=false" >> $GITHUB_OUTPUT
echo "Dockerfile not found, skipping rest of job"
fi

- name: Checkout connector workflows
if: steps.check-dockerfile.outputs.exists == 'true'
uses: actions/checkout@v4
with:
path: _workflows
repository: ConductorOne/github-workflows
ref: ${{ needs.determine-workflows-ref.outputs.ref }}

- name: Set up Go
if: steps.check-dockerfile.outputs.exists == 'true'
uses: actions/setup-go@v5
with:
go-version-file: "_caller/go.mod"

- name: Generate goreleaser configs
if: steps.check-dockerfile.outputs.exists == 'true'
env:
REPO_NAME: ${{ github.event.repository.name }}
run: |
Expand All @@ -289,16 +303,19 @@ jobs:
cat _workflows/.goreleaser.docker.yaml

- name: Docker Login
if: steps.check-dockerfile.outputs.exists == 'true'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.RELENG_GITHUB_TOKEN }}

- name: Set up Docker Buildx
if: steps.check-dockerfile.outputs.exists == 'true'
uses: docker/setup-buildx-action@v3

- name: Run GoReleaser
if: steps.check-dockerfile.outputs.exists == 'true'
uses: goreleaser/goreleaser-action@v6
with:
workdir: _caller
Expand Down