diff options
author | Alex Goodman <wagoodman@users.noreply.github.com> | 2023-07-07 11:42:48 -0400 |
---|---|---|
committer | Alex Goodman <wagoodman@users.noreply.github.com> | 2023-07-07 11:42:48 -0400 |
commit | 800398060434ce8dfda6b4d182b72e2a9724e9f6 (patch) | |
tree | 439caac1ac83510f22e9739ae03781518d1ccf9b | |
parent | 6f20438ae42b2c27a5dc3da91b64298b63e3910f (diff) |
enable release pipelinev0.11.0
-rw-r--r-- | .github/workflows/release.yaml | 76 | ||||
-rw-r--r-- | .goreleaser.yaml | 1 |
2 files changed, 40 insertions, 37 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index be3310f..56ee8b8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -34,7 +34,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} # This check name is defined as the github action job name (in .github/workflows/validations.yaml) - checkName: "Unit tests" + checkName: "Unit tests (ubuntu-latest)" ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Check acceptance test results (linux) @@ -76,39 +76,41 @@ jobs: false -# TODO: uncomment this when we have a release process tested and ready to go -# release: -# needs: [quality-gate] -# runs-on: ubuntu-latest -# permissions: -# # for tagging -# contents: write -# steps: -# -# - uses: actions/checkout@v3 -# with: -# fetch-depth: 0 -# -# - name: Bootstrap environment -# uses: ./.github/actions/bootstrap -# -# - name: Tag release -# run: | -# git tag ${{ github.event.inputs.version }} -# git push origin --tags -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# -# - name: Login to Docker Hub -# uses: docker/login-action@v2 -# with: -# username: ${{ secrets.DOCKER_USERNAME }} -# password: ${{ secrets.DOCKER_PASSWORD }} -# -# - name: Build & publish release artifacts -# run: make ci-release -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# -# - name: Smoke test published image -# run: make ci-test-docker-image + release: + needs: [quality-gate] + runs-on: ubuntu-latest + permissions: + # for tagging + contents: write + steps: + + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Bootstrap environment + uses: ./.github/actions/bootstrap + + - name: Tag release + run: | + git tag ${{ github.event.inputs.version }} + git push origin --tags + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build & publish release artifacts + run: make ci-release + env: + # for creating the release (requires write access to content) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # for updating brew formula in wagoodman/homebrew-dive + TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} + + - name: Smoke test published image + run: make ci-test-docker-image diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3de4c14..e67e21c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -23,6 +23,7 @@ brews: - repository: owner: wagoodman name: homebrew-dive + token: "{{.Env.TAP_GITHUB_TOKEN}}" homepage: "https://github.com/wagoodman/dive/" description: "A tool for exploring layers in a docker image" |