Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c83e8b8e8 | ||
|
|
399db56499 | ||
|
|
3ef567a39e | ||
|
|
1ff03cd09f |
@@ -1,6 +1,7 @@
|
||||
name: Build & Push
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
@@ -18,7 +19,7 @@ jobs:
|
||||
|
||||
- name: Bump version
|
||||
id: version
|
||||
uses: https://git.sebse.de/sebse/actions/version-bump@main
|
||||
uses: https://git.sebse.de/sebse/actions/version-bump@v1
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
|
||||
@@ -28,26 +29,52 @@ jobs:
|
||||
echo "IMAGE_MIGRATE=git.sebse.de/${{ github.repository }}-migrate" >> $GITHUB_ENV
|
||||
|
||||
- name: Docker login
|
||||
uses: https://git.sebse.de/sebse/actions/docker-login@main
|
||||
uses: https://git.sebse.de/sebse/actions/docker-login@v1
|
||||
with:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push app
|
||||
uses: https://git.sebse.de/sebse/actions/docker-build-push@main
|
||||
- name: Extract metadata (app)
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
image: ${{ env.IMAGE }}
|
||||
build-context: ./web
|
||||
images: ${{ env.IMAGE }}
|
||||
tags: |
|
||||
type=sha,prefix=,format=short
|
||||
type=raw,value=latest
|
||||
type=raw,value=${{ steps.version.outputs.version }}
|
||||
|
||||
- name: Build and push app
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./web
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
cache-from: type=registry,ref=${{ env.IMAGE }}:latest
|
||||
cache-to: type=inline
|
||||
|
||||
- name: Extract metadata (migrate)
|
||||
id: meta-migrate
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.IMAGE_MIGRATE }}
|
||||
tags: |
|
||||
type=sha,prefix=,format=short
|
||||
type=raw,value=latest
|
||||
type=raw,value=${{ steps.version.outputs.version }}
|
||||
|
||||
- name: Build and push migrate
|
||||
uses: https://git.sebse.de/sebse/actions/docker-build-push@main
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
image: ${{ env.IMAGE_MIGRATE }}
|
||||
build-context: ./web
|
||||
dockerfile: ./web/Dockerfile.migrate
|
||||
context: ./web
|
||||
file: ./web/Dockerfile.migrate
|
||||
push: true
|
||||
tags: ${{ steps.meta-migrate.outputs.tags }}
|
||||
cache-from: type=registry,ref=${{ env.IMAGE_MIGRATE }}:latest
|
||||
cache-to: type=inline
|
||||
|
||||
- name: Package and push helm chart
|
||||
uses: https://git.sebse.de/sebse/actions/helm-package-push@main
|
||||
uses: https://git.sebse.de/sebse/actions/helm-package-push@v1
|
||||
with:
|
||||
chart-path: ${{ env.CHART_PATH }}
|
||||
version: ${{ steps.version.outputs.version }}
|
||||
@@ -55,8 +82,15 @@ jobs:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Package and push Factorio mod
|
||||
uses: https://git.sebse.de/sebse/actions/factorio-mod-push@v1
|
||||
with:
|
||||
mod-folder: ./plugin
|
||||
version: ${{ steps.version.outputs.version }}
|
||||
factorio-token: ${{ secrets.FACTORIO_TOKEN }}
|
||||
|
||||
- name: Deploy to prod
|
||||
uses: https://git.sebse.de/sebse/actions/helm-deploy@main
|
||||
uses: https://git.sebse.de/sebse/actions/helm-deploy@v1
|
||||
with:
|
||||
app: factorio-signal-exporter
|
||||
profile: prod
|
||||
|
||||
3
plugin/README.md
Normal file
3
plugin/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Signal Exporter
|
||||
|
||||
Provides a custom combinator that reads both connected circuit and logistic networks, writing the data to a JSON file.
|
||||
Reference in New Issue
Block a user