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