geocrop-platform./apps/nextgen/.gitea/workflows/build-push.yaml

28 lines
939 B
YAML

name: Build and Push Next-Gen
on:
push:
branches: [main, dev]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker config
run: |
mkdir -p .docker
AUTH=$(echo -n "frankchine:${{ secrets.DOCKERHUB_TOKEN }}" | base64 | tr -d '\n')
echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$AUTH\"}}}" > .docker/config.json
- name: Build and Push
uses: docker://gcr.io/kaniko-project/executor:debug
with:
args: >-
--context=dir://${{ gitea.workspace }}
--dockerfile=${{ gitea.workspace }}/Dockerfile
--destination=frankchine/next-gen:${{ gitea.sha }}
--destination=frankchine/next-gen:${{ gitea.ref_name }}
--destination=frankchine/next-gen:latest
env:
DOCKER_CONFIG: ${{ gitea.workspace }}/.docker