Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Update Github Actions (#7) #9

Update Github Actions (#7)

Update Github Actions (#7) #9

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
name: Build and push
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
strategy:
matrix:
version:
- latest
- latest-ubuntu
- 2022-latest
include:
- version: latest
ubuntu: 20.04
year: 2022
- version: latest-ubuntu
ubuntu: 20.04
year: 2022
- version: 2022-latest
ubuntu: 20.04
year: 2022
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/${{ github.repository_owner }}/mssql-server
tags: |
type=raw,value=${{ matrix.version }}
- uses: docker/build-push-action@v5
with:
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |-
VERSION=${{ matrix.version }}
UBUNTU=${{ matrix.ubuntu }}
YEAR=${{ matrix.year }}
cache-from: type=gha,scope=build-${{ matrix.version }}
cache-to: type=gha,mode=max,scope=build-${{ matrix.version }}