25 lines
802 B
YAML
25 lines
802 B
YAML
name: Build and Push Next-Gen
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
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:latest
|
|
env:
|
|
DOCKER_CONFIG: ${{ gitea.workspace }}/.docker
|