From 762d499901331a83ff878e9ed59038ef702fe5b8 Mon Sep 17 00:00:00 2001 From: xiaohei <3440556848@qq.com> Date: Sat, 15 Feb 2025 13:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E6=89=8B=E5=8A=A8=E6=89=A7?= =?UTF-8?q?=E8=A1=8Cpodman?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/docker-build.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index d33cd03..1d9ac60 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -12,7 +12,7 @@ env: REGISTRY_USER: admin REGISTRY_PASSWORD: 6nkTT9Th5z6gR?ro IMAGE_REGISTRY: hub.docker.xiaohei.one - IMAGE_TAGS: v1 ${{ github.sha }} + IMAGE_TAGS: {{ github.sha }} jobs: build: @@ -23,18 +23,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: install buildah - run: apt update && apt install buildah -y + - name: install podman + run: apt update && apt install podman -y - name: Build Docker Image - id: build_image - uses: redhat-actions/buildah-build@v2 - with: - image: test_devops - tags: ${{ env.IMAGE_TAGS }} - registry: ${{ env.IMAGE_REGISTRY }} - containerfiles: | - ./Dockerfile + run: podman build -t ${{ steps.build_image.outputs.image }}:${{ steps.build_image.outputs.tags }} . - name: login to registry uses: redhat-actions/podman-login@v1