finish basic functionality, set up ghcr.io #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: [push, pull_request, workflow_call] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Lint Dockerfile | |
uses: hadolint/hadolint-action@master | |
with: | |
verbose: true | |
dockerfile: "Dockerfile" | |
build: | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Docker Images | |
uses: ScribeMD/[email protected] | |
with: | |
key: docker-${{ runner.os }}-${{ hashFiles('**/Dockerfile') }} | |
- name: Build Docker Image | |
run: docker build . --file Dockerfile --tag rss2jext:$(date +%s) |