This commit is contained in:
maximo tejeda 2024-02-08 18:04:52 -04:00
parent 9b28afcf91
commit 5c097be671

View File

@ -4,34 +4,25 @@ on:
push: push:
branches: branches:
- master - master
jobs: jobs:
build: build:
name: Build and push image runs-on: cth-ubuntu-latest
runs-on: ubuntu-latest needs: build
container: catthehacker/ubuntu:act-latest if: gitea.ref == 'refs/heads/main'
steps:
steps: - name: chekcout
- name: Checkout uses: https://github.com/actions/checkout@v4
uses: actions/checkout@v4 - name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Create Kubeconfig with:
run: | config-inline: |
mkdir $HOME/.kube [registry."192.168.0.151:32000"]
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config http = true
insecure = true
- name: Set up Docker Buildx - name: Build and push Docker image
uses: docker/setup-buildx-action@v3 uses: https://github.com/docker/build-push-action@v5
with: with:
driver: kubernetes context: .
driver-opts: | file: ./Dockerfile
namespace=act-runner push: true
qemu.install=true tags: "192.168.0.151:32000/crawler:${{gitea.sha}},192.168.0.151:32000/crawler:latest"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/arm64
tags: |
localhost:32000/scrapper:latest