尝试手动执行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_USER: admin
REGISTRY_PASSWORD: 6nkTT9Th5z6gR?ro REGISTRY_PASSWORD: 6nkTT9Th5z6gR?ro
IMAGE_REGISTRY: hub.docker.xiaohei.one IMAGE_REGISTRY: hub.docker.xiaohei.one
IMAGE_TAGS: v1 ${{ github.sha }} IMAGE_TAGS: {{ github.sha }}
jobs: jobs:
build: build:
@ -23,18 +23,11 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: install buildah - name: install podman
run: apt update && apt install buildah -y run: apt update && apt install podman -y
- name: Build Docker Image - name: Build Docker Image
id: build_image run: podman build -t ${{ steps.build_image.outputs.image }}:${{ steps.build_image.outputs.tags }} .
uses: redhat-actions/buildah-build@v2
with:
image: test_devops
tags: ${{ env.IMAGE_TAGS }}
registry: ${{ env.IMAGE_REGISTRY }}
containerfiles: |
./Dockerfile
- name: login to registry - name: login to registry
uses: redhat-actions/podman-login@v1 uses: redhat-actions/podman-login@v1