Skip to content

Commit

Permalink
Build container
Browse files Browse the repository at this point in the history
  • Loading branch information
reknih committed Jan 29, 2024
1 parent 2b629bd commit 4cb616e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .Dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
README.md
.gitignore
.github
35 changes: 35 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Create data container

on:
push:
branches:
- main

env:
REGISTRY: ghcr.io

jobs:
frontend-container:
name: Create template container
runs-on: ubuntu-latest
steps:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/templates
tags: type=ref,event=branch

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Minimal data container for the templates.
# This is used to copy the templates into the webapp containers.
FROM scratch

COPY . .

0 comments on commit 4cb616e

Please sign in to comment.