Skip to content

Build server/0.19.1 #29

Build server/0.19.1

Build server/0.19.1 #29

Workflow file for this run

name: Build server image
run-name: Build ${{ github.ref_name }}
on:
push:
tags:
- "server/*"
env:
S3_BUCKET: battleship-tui-build-cache
jobs:
build:
name: Build server
runs-on: [self-hosted, arm64]
permissions:
contents: read
packages: write
steps:
- name: Extract semver from tag (server/x.x.x -> x.x.x)
id: extract_semver
run: echo "version=$(basename ${{ github.ref_name }})" >> "$GITHUB_OUTPUT"
- uses: Klavionik/gh-actions/build-image@main
name: Build
with:
context: .
service: server
build-args: |
VERSION=${{ steps.extract_semver.outputs.version }}
tags: |
type=match,pattern=server/(.*),group=1
cache-bucket: ${{ env.S3_BUCKET }}
cache-access-key: ${{ secrets.S3_ACCESS_KEY }}
cache-secret-key: ${{ secrets.S3_SECRET_KEY }}