try docker build
This commit is contained in:
@@ -41,23 +41,24 @@ jobs:
|
||||
build-docker-image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update package list
|
||||
run: sudo apt-get update
|
||||
|
||||
- name: Setup Podman
|
||||
run: sudo apt-get -y install podman
|
||||
|
||||
- name: verify Podman installation
|
||||
run: podman -v
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Docker registry
|
||||
run: podman login --tls-verify=false gitea:3000 --username ${{ github.actor }} --password ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||
- name: Set up Docker Build
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build image
|
||||
run: podman build .
|
||||
- name: Log in to registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.INSTANCE_URL }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: ${{ vars.INSTANCE_URL }}/${{ github.repository }}:${{ github.sha }}
|
||||
|
||||
# type-check:
|
||||
# runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user