build/patch: update workflow to use actions from git.sebse.de
Some checks failed
Build & Push / build (push) Failing after 3s
Some checks failed
Build & Push / build (push) Failing after 3s
This commit is contained in:
@@ -6,8 +6,6 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE: git.sebse.de/${{ github.repository }}
|
|
||||||
IMAGE_MIGRATE: git.sebse.de/${{ github.repository }}-migrate
|
|
||||||
CHART_PATH: web/charts/factorio-signal-exporter
|
CHART_PATH: web/charts/factorio-signal-exporter
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -18,30 +16,33 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set SHORT_SHA
|
- name: Set env vars
|
||||||
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
|
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
|
- name: Docker login
|
||||||
uses: sebse/actions/docker-login@main
|
uses: git.sebse.de/sebse/actions/docker-login@main
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push app
|
- name: Build and push app
|
||||||
uses: sebse/actions/docker-build-push@main
|
uses: git.sebse.de/sebse/actions/docker-build-push@main
|
||||||
with:
|
with:
|
||||||
image: ${{ env.IMAGE }}
|
image: ${{ env.IMAGE }}
|
||||||
context: ./web
|
context: ./web
|
||||||
|
|
||||||
- name: Build and push migrate
|
- name: Build and push migrate
|
||||||
uses: sebse/actions/docker-build-push@main
|
uses: git.sebse.de/sebse/actions/docker-build-push@main
|
||||||
with:
|
with:
|
||||||
image: ${{ env.IMAGE_MIGRATE }}
|
image: ${{ env.IMAGE_MIGRATE }}
|
||||||
context: ./web
|
context: ./web
|
||||||
dockerfile: ./web/Dockerfile.migrate
|
dockerfile: ./web/Dockerfile.migrate
|
||||||
|
|
||||||
- name: Package and push helm chart
|
- name: Package and push helm chart
|
||||||
uses: sebse/actions/helm-package-push@main
|
uses: git.sebse.de/sebse/actions/helm-package-push@main
|
||||||
with:
|
with:
|
||||||
chart-path: ${{ env.CHART_PATH }}
|
chart-path: ${{ env.CHART_PATH }}
|
||||||
version: 0.0.0-${{ env.SHORT_SHA }}
|
version: 0.0.0-${{ env.SHORT_SHA }}
|
||||||
@@ -50,7 +51,7 @@ jobs:
|
|||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Deploy to prod
|
- name: Deploy to prod
|
||||||
uses: sebse/actions/helm-deploy@main
|
uses: git.sebse.de/sebse/actions/helm-deploy@main
|
||||||
with:
|
with:
|
||||||
app: factorio-signal-exporter
|
app: factorio-signal-exporter
|
||||||
profile: prod
|
profile: prod
|
||||||
|
|||||||
Reference in New Issue
Block a user