godash/.forgejo/workflows/build_deploy.yaml
Florian Hoss e7eea8e7b8
Some checks failed
Build and Push Docker Image / build (push) Failing after 1s
Build and Push Docker Image / cleanup (push) Has been skipped
Adjust vars
2024-10-31 08:21:32 +01:00

28 lines
590 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
env:
LATEST_IMAGE: ${{ github.server_url }}/${{ github.repository }}:latest
jobs:
build:
runs-on: self-hosted
steps:
- run: |
docker build \
--build-arg V_GOLANG=${{ vars.V_GOLANG }} \
--build-arg V_NODE=${{ vars.V_NODE }} \
--build-arg V_ALPINE=${{ vars.V_ALPINE }} \
--tag ${{ env.LATEST_IMAGE }} \
--push .
cleanup:
runs-on: self-hosted
needs: build
steps:
- run: |
docker system prune -a -f