尝试手动执行podman

This commit is contained in:
xiaohei 2025-02-15 13:50:38 +08:00
parent 9e6158ed1a
commit 762d499901

View File

@ -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