generated from sapphiredev/sapphire-template
-
-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (28 loc) · 766 Bytes
/
continuous-delivery.yml
File metadata and controls
30 lines (28 loc) · 766 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
name: Continuous Delivery
on:
push:
branches:
- main
jobs:
Build:
name: Publish Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v6
with:
submodules: true
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.11.1
- name: Login to GitHub Container Registry
uses: docker/login-action@v4.0.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6.18.0
with:
push: true
context: .
tags: ghcr.io/sapphiredev/spinel:latest