enable release pipeline
This commit is contained in:
parent
6f20438ae4
commit
8003980604
76
.github/workflows/release.yaml
vendored
76
.github/workflows/release.yaml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# This check name is defined as the github action job name (in .github/workflows/validations.yaml)
|
# 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 }}
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
|
|
||||||
- name: Check acceptance test results (linux)
|
- name: Check acceptance test results (linux)
|
||||||
@ -76,39 +76,41 @@ jobs:
|
|||||||
|
|
||||||
false
|
false
|
||||||
|
|
||||||
# TODO: uncomment this when we have a release process tested and ready to go
|
release:
|
||||||
# release:
|
needs: [quality-gate]
|
||||||
# needs: [quality-gate]
|
runs-on: ubuntu-latest
|
||||||
# runs-on: ubuntu-latest
|
permissions:
|
||||||
# permissions:
|
# for tagging
|
||||||
# # for tagging
|
contents: write
|
||||||
# contents: write
|
steps:
|
||||||
# steps:
|
|
||||||
#
|
- uses: actions/checkout@v3
|
||||||
# - uses: actions/checkout@v3
|
with:
|
||||||
# with:
|
fetch-depth: 0
|
||||||
# fetch-depth: 0
|
|
||||||
#
|
- name: Bootstrap environment
|
||||||
# - name: Bootstrap environment
|
uses: ./.github/actions/bootstrap
|
||||||
# uses: ./.github/actions/bootstrap
|
|
||||||
#
|
- name: Tag release
|
||||||
# - name: Tag release
|
run: |
|
||||||
# run: |
|
git tag ${{ github.event.inputs.version }}
|
||||||
# git tag ${{ github.event.inputs.version }}
|
git push origin --tags
|
||||||
# git push origin --tags
|
env:
|
||||||
# env:
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
#
|
- name: Login to Docker Hub
|
||||||
# - name: Login to Docker Hub
|
uses: docker/login-action@v2
|
||||||
# uses: docker/login-action@v2
|
with:
|
||||||
# with:
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
#
|
- name: Build & publish release artifacts
|
||||||
# - name: Build & publish release artifacts
|
run: make ci-release
|
||||||
# run: make ci-release
|
env:
|
||||||
# env:
|
# for creating the release (requires write access to content)
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
#
|
# for updating brew formula in wagoodman/homebrew-dive
|
||||||
# - name: Smoke test published image
|
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
|
||||||
# run: make ci-test-docker-image
|
|
||||||
|
- name: Smoke test published image
|
||||||
|
run: make ci-test-docker-image
|
||||||
|
@ -23,6 +23,7 @@ brews:
|
|||||||
- repository:
|
- repository:
|
||||||
owner: wagoodman
|
owner: wagoodman
|
||||||
name: homebrew-dive
|
name: homebrew-dive
|
||||||
|
token: "{{.Env.TAP_GITHUB_TOKEN}}"
|
||||||
homepage: "https://github.com/wagoodman/dive/"
|
homepage: "https://github.com/wagoodman/dive/"
|
||||||
description: "A tool for exploring layers in a docker image"
|
description: "A tool for exploring layers in a docker image"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user