Skip to content

Commit

Permalink
Merge pull request #13 from CondensedTea/feature-docker-build-workflow
Browse files Browse the repository at this point in the history
Feature: docker image build workflow
  • Loading branch information
kieranajp authored Jan 3, 2023
2 parents 53f614b + 70204fe commit f29454d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build docker image
on:
push:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: docker/setup-buildx-action@v2

- uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/metadata-action@v4
id: meta
with:
images: "ghcr.io/vimeda/helm"
tags: |
${{ github.sha }}
latest
- uses: actions/checkout@v3

- uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ inputs:
required: false
runs:
using: docker
image: Dockerfile
image: docker://ghcr.io/vimeda/helm

0 comments on commit f29454d

Please sign in to comment.