From a41e79f7ae1e015e16daf14c7d05c65b6a8e3476 Mon Sep 17 00:00:00 2001 From: "Alex Lau (AvengerMoJo)" Date: Tue, 31 Oct 2023 14:24:20 +0800 Subject: [PATCH] Testing another build syntax Signed-off-by: Alex Lau (AvengerMoJo) --- .gitea/workflows/obs-service.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/obs-service.yaml b/.gitea/workflows/obs-service.yaml index a67b899..7c84ce7 100644 --- a/.gitea/workflows/obs-service.yaml +++ b/.gitea/workflows/obs-service.yaml @@ -1,7 +1,16 @@ name: OSC Pull Custom Image Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] +on: + push: + branches: [ factory ] jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --platform linux/amd64 --tag bc:latest + osc_job: runs-on: ubuntu-latest name: opensuse osc custom container checkout test @@ -15,4 +24,3 @@ jobs: env: # Or as an environment variable osc_pass: ${{ secrets.OSCPASS }} id: osc-demo - run: docker build . --file Dockerfile --tag bc:latest