-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.25 KB
/
docker.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
{
"on": { "push": { "branches": ["pure-rust"] } },
"name": "Docker",
"permissions": { "packages": "write" },
"jobs":
{
"docker-build":
{
"name": "Build & Push Docker Container",
"runs-on": "ubuntu-latest",
"steps":
[
{
"name": "Checkout",
"uses": "actions/checkout@v4",
},
{
"name": "Build Image",
"run": "docker buildx build -t ghcr.io/goval-community/homeval:${{ github.sha }} .",
},
{
"name": "Log In to Registry",
"run": 'echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin',
},
{
"name": "Push Image",
"run": "docker push ghcr.io/goval-community/homeval:${{ github.sha }}",
},
],
},
},
}