Skip to content

Commit f29454d

Browse files
authored
Merge pull request #13 from CondensedTea/feature-docker-build-workflow
Feature: docker image build workflow
2 parents 53f614b + 70204fe commit f29454d

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build docker image
2+
on:
3+
push:
4+
branches: ["master"]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
packages: write
12+
steps:
13+
- uses: docker/setup-buildx-action@v2
14+
15+
- uses: docker/login-action@v2
16+
with:
17+
registry: "ghcr.io"
18+
username: ${{ github.actor }}
19+
password: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- uses: docker/metadata-action@v4
22+
id: meta
23+
with:
24+
images: "ghcr.io/vimeda/helm"
25+
tags: |
26+
${{ github.sha }}
27+
latest
28+
29+
- uses: actions/checkout@v3
30+
31+
- uses: docker/build-push-action@v3
32+
with:
33+
context: .
34+
push: true
35+
tags: ${{ steps.meta.outputs.tags }}
36+
labels: ${{ steps.meta.outputs.labels }}
37+
cache-from: type=gha
38+
cache-to: type=gha,mode=max

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ inputs:
6666
required: false
6767
runs:
6868
using: docker
69-
image: Dockerfile
69+
image: docker://ghcr.io/vimeda/helm

0 commit comments

Comments
 (0)