Skip to content

Show proper version for lightweight tags (#2152) #2

Show proper version for lightweight tags (#2152)

Show proper version for lightweight tags (#2152) #2

Workflow file for this run

name: Publish Release
on:
push:
tags:
- "*"
jobs:
debian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5
name: Build ${{ github.ref_name }} image
with:
context: .
push: true
tags: "kitware/cdash:${{ github.ref_name }}"
target: cdash
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: docker/build-push-action@v5
name: Build ${{ github.ref_name }} worker image
with:
context: .
push: true
tags: "kitware/cdash-worker:${{ github.ref_name }}"
target: cdash
cache-from: type=gha
cache-to: type=gha,mode=max
ubi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5
name: Build ${{ github.ref_name }} image
with:
context: .
push: true
tags: "kitware/cdash:${{ github.ref_name }}-ubi"
target: cdash
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: docker/build-push-action@v5
name: Build ${{ github.ref_name }} worker image
with:
context: .
push: true
tags: "kitware/cdash-worker:${{ github.ref_name }}-ubi"
target: cdash
cache-from: type=gha
cache-to: type=gha,mode=max