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

Bump actions/checkout from 3 to 4 (#2) #8

Bump actions/checkout from 3 to 4 (#2)

Bump actions/checkout from 3 to 4 (#2) #8

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@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- uses: docker/metadata-action@v4
id: meta
with:
images: ghcr.io/${{ github.repository_owner }}/mssql-server
tags: |
type=raw,value=${{ matrix.version }}
- uses: docker/build-push-action@v4
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 }}