Files
factorio-signal-exporter/.gitea/workflows/build.yml
Caesar2011 456fde28a5
Some checks failed
Build & Push / build (push) Failing after 1m17s
build/patch: update gitea action references to use https
2026-05-18 18:35:29 +02:00

60 lines
1.7 KiB
YAML

name: Build & Push
on:
push:
branches:
- main
env:
CHART_PATH: web/charts/factorio-signal-exporter
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env vars
run: |
echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
echo "IMAGE=git.sebse.de/${{ github.repository }}" >> $GITHUB_ENV
echo "IMAGE_MIGRATE=git.sebse.de/${{ github.repository }}-migrate" >> $GITHUB_ENV
- name: Docker login
uses: https://git.sebse.de/sebse/actions/docker-login@main
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
with:
image: ${{ env.IMAGE }}
context: ./web
- name: Build and push migrate
uses: https://git.sebse.de/sebse/actions/docker-build-push@main
with:
image: ${{ env.IMAGE_MIGRATE }}
context: ./web
dockerfile: ./web/Dockerfile.migrate
- name: Package and push helm chart
uses: https://git.sebse.de/sebse/actions/helm-package-push@main
with:
chart-path: ${{ env.CHART_PATH }}
version: 0.0.0-${{ env.SHORT_SHA }}
app-version: ${{ env.SHORT_SHA }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Deploy to prod
uses: https://git.sebse.de/sebse/actions/helm-deploy@main
with:
app: factorio-signal-exporter
profile: prod
version: 0.0.0-${{ env.SHORT_SHA }}
ssh-key: ${{ secrets.HELMBOT_SSH_KEY }}