-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 782 Bytes
/
ci.yml
File metadata and controls
32 lines (29 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
IMAGE_NAME: ${{ github.event.repository.name }}
jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Process metadata (tags, labels)
id: meta
uses: docker/metadata-action@v6
with:
images: |
${{ vars.DOCKER_ORGANIZATION }}/${{ env.IMAGE_NAME }}
${{ vars.REGISTRY_GITHUB }}/${{ github.repository }}
- name: Build image
uses: docker/build-push-action@v7
with:
context: .
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}