forked from Maurice/pastabble
chore: add ci
This commit is contained in:
parent
8b3c78cb84
commit
952a1075bf
27
.gitea/workflows/ci.yaml
Normal file
27
.gitea/workflows/ci.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Container build
|
||||||
|
on: [ push ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
container-build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
|
steps:
|
||||||
|
- name: Clone repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up BuildX
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
endpoint: 'unix:///var/run/user/1000/podman/podman.sock'
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Containerfile
|
||||||
|
platforms: |
|
||||||
|
linux/amd64
|
||||||
|
# linux/arm64
|
||||||
|
push: false
|
||||||
|
# tags: |
|
||||||
|
# ${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO_NAME }}:latest
|
||||||
|
# ${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
||||||
|
#
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user