Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78421b9a93 | ||
|
|
b206c734b0 | ||
|
|
9102a9b15a | ||
|
|
3ff9759e1e | ||
|
|
dd2571c09d | ||
|
|
30d0485da3 | ||
|
|
3232abab68 | ||
|
|
6add9f7cad | ||
|
|
e8ca15df06 | ||
|
|
1061864cae | ||
|
|
26449dd5c9 | ||
|
|
72e822950b | ||
|
|
d3396a4c9b | ||
|
|
1269b35dbd | ||
|
|
0163625507 | ||
|
|
b28c1e6795 |
44
.gitea/workflows/build_container.yml
Normal file
44
.gitea/workflows/build_container.yml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*' # Trigger on any git tag
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Podman
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y podman fuse-overlayfs slirp4netns
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
- name: Verify Podman
|
||||||
|
run: |
|
||||||
|
podman --version
|
||||||
|
podman info
|
||||||
|
|
||||||
|
- name: Build container image
|
||||||
|
run: |
|
||||||
|
podman build --storage-driver=vfs -t my-image:latest .
|
||||||
|
|
||||||
|
- name: Log in to Docker registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
env:
|
||||||
|
registry: https://gitea.papryk.com
|
||||||
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: "https://gitea.papryk.com/Papryk/dj-spangebob:${{ gitea.ref_name }}"
|
||||||
|
|
||||||
Reference in New Issue
Block a user