Skip to content

Update docs w/ v0.2.0 details in roadmap and help message (#59) #7

Update docs w/ v0.2.0 details in roadmap and help message (#59)

Update docs w/ v0.2.0 details in roadmap and help message (#59) #7

Workflow file for this run

---
name: release
on:
push:
tags:
- 'v*'
env:
IMAGE_NAME: ceph
CEPH_SOURCE_IMAGE: quay.io/ceph/ceph
CEPH_VERSION: 18.2.2
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: articulate/actions-markdownlint@v1
unittests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Install dependencies
run: go mod download
- name: Test with the Go CLI
run: go test ./...
- name: Build
run: go build -v ./...
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
needs:
- hadolint
- markdownlint
- unittests
steps:
- name: Define build timestamp
id: timestamp
run: echo "::set-output name=now::$(date -u +'%Y%m%d%H%M%S')"
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Install dependencies
run: go mod download
- name: Build & Publish release release
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
build-args: |
CEPH_SOURCE_IMAGE: ${{ env.CEPH_SOURCE_IMAGE }}
CEPH_VERSION=${{ env.CEPH_VERSION }}
file: ./Dockerfile
platforms: amd64
push: true
tags: |
ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }}:v${{ env.CEPH_VERSION }}
ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }}:v${{ env.CEPH_VERSION }}-${{ github.ref_name }}
ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }}:v${{ env.CEPH_VERSION }}-${{ github.ref_name }}-${{ steps.timestamp.outputs.now }}
outputs: type=image,name=ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }},annotation-index.org.opencontainers.image.description=${{ env.IMAGE_NAME }}