Skip to content

feat(coder-attach): add coder_external_agent resource (#424) #135

feat(coder-attach): add coder_external_agent resource (#424)

feat(coder-attach): add coder_external_agent resource (#424) #135

Workflow file for this run

# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
#
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
# secret. If you would rather own your own GPG handling, please fork this action
# or use an alternative one for key handling.
#
# You will need to pass the `--batch` flag to `gpg` in your signing step
# in `goreleaser` to indicate this is being used in a non-interactive mode.
#
name: release
on:
push:
tags:
- "v*"
jobs:
test:
name: Run Integration Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
go mod download
- name: Build
env:
CGO_ENABLED: "0"
run: |
go build -v .
- name: Check Versions
id: checkversions
run: |
source <(go run ./scripts/coderversion)
echo "CODER_MAINLINE_VERSION=${CODER_MAINLINE_VERSION}" >> "${GITHUB_OUTPUT}"
echo "CODER_STABLE_VERSION=${CODER_STABLE_VERSION}" >> "${GITHUB_OUTPUT}"
echo "CODER_OLDSTABLE_VERSION=${CODER_OLDSTABLE_VERSION}" >> "${GITHUB_OUTPUT}"
- name: Run integration test (mainline)
env:
CODER_IMAGE: "ghcr.io/coder/coder"
CODER_VERSION: ${{ steps.checkversions.outputs.CODER_MAINLINE_VERSION }}
run: |
go test -v ./integration
- name: Run integration test (stable)
env:
CODER_IMAGE: "ghcr.io/coder/coder"
CODER_VERSION: ${{ steps.checkversions.outputs.CODER_STABLE_VERSION }}
run: |
go test -v ./integration
- name: Run integration test (oldstable)
env:
CODER_IMAGE: "ghcr.io/coder/coder"
CODER_VERSION: ${{ steps.checkversions.outputs.CODER_OLDSTABLE_VERSION }}
run: |
go test -v ./integration
goreleaser:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6.3.0
with:
# These secrets will need to be configured for the repository:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6.3.0
with:
version: '~> v2'
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# GitHub sets this automatically
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy