20 lines
557 B
YAML
20 lines
557 B
YAML
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- 'main'
|
||
|
jobs:
|
||
|
build-container:
|
||
|
runs-on: docker
|
||
|
container:
|
||
|
image: library/docker:dind
|
||
|
steps:
|
||
|
- run: apk add --no-cache nodejs git
|
||
|
- name: login to container registry
|
||
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login --username "${GITHUB_ACTOR}" --password-stdin git.janky.solutions
|
||
|
- name: build container
|
||
|
uses: docker/build-push-action@v4
|
||
|
with:
|
||
|
file: Containerfile
|
||
|
tags: git.janky.solutions/finn/s3staticsite:latest
|
||
|
push: true
|