godash/.forgejo/workflows/build_deploy.yaml
Florian Hoss 6547a81b19
Some checks failed
Build and Push Docker Image / prepare (push) Failing after 55s
Push manually
2024-10-31 10:02:26 +01:00

35 lines
907 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
env:
REGISTRY: git.unjx.de
LATEST_IMAGE: ${{ env.REGISTRY }}/${{ github.repository }}:latest
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Forgejo Container Registry
uses: docker/login-action@v3
with:
registry: git.unjx.de
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build
uses: docker/build-push-action@v6
with:
tags: ${{ env.LATEST_IMAGE }}
build-args: |
V_GOLANG=${{ vars.V_GOLANG }}
V_NODE=${{ vars.V_NODE }}
V_ALPINE=${{ vars.V_ALPINE }}
- name: Push
run: docker push ${{ env.LATEST_IMAGE }}