-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.14 KB
/
core.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: core
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-core:
runs-on: ubuntu-latest
container:
image: docker:24.0.7
env:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
steps:
- name: Build core automation
run: |
apk add git make
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v4
with:
push: true
context: .
file: ./Dockerfile
tags: |
ghcr.io/netbootxyz/${{ github.workflow }}:latest
ghcr.io/netbootxyz/${{ github.workflow }}:${{ github.sha }}