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: Checkout - name: chekcout
uses: actions/checkout@v4 uses: https://github.com/actions/checkout@v4
- name: Create Kubeconfig
run: |
mkdir $HOME/.kube
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: https://github.com/docker/setup-buildx-action@v3
with: with:
driver: kubernetes config-inline: |
driver-opts: | [registry."192.168.0.151:32000"]
namespace=act-runner http = true
qemu.install=true insecure = true
- name: Build and push - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: https://github.com/docker/build-push-action@v5
with: with:
context: . context: .
file: ./Dockerfile
push: true push: true
platforms: linux/arm64 tags: "192.168.0.151:32000/crawler:${{gitea.sha}},192.168.0.151:32000/crawler:latest"
tags: |
localhost:32000/scrapper:latest