29 lines
716 B
YAML
29 lines
716 B
YAML
name: ci
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build_linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build image
|
|
id: build
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile
|
|
# do not push yet
|
|
push: false
|
|
tags: |
|
|
${{ github.repository }}:${{ github.sha }}
|
|
${{ github.repository }}:${{ github.ref_name }}
|
|
${{ github.repository }}:latest
|
|
build-args: |
|
|
# Add any build args here
|
|
# ARG_NAME=VALUE |