Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8be88fd4c7 | ||
|
|
ab021d1512 | ||
|
|
4e944da7e1 | ||
|
|
41d040167b | ||
|
|
cbe9ca8691 | ||
|
|
79841b30c9 | ||
|
|
3d7f6eeddf | ||
|
|
ff433ebd58 | ||
|
|
a116302a10 | ||
|
|
459174e3c3 | ||
|
|
78421b9a93 | ||
|
|
b206c734b0 | ||
|
|
9102a9b15a | ||
|
|
3ff9759e1e | ||
|
|
dd2571c09d | ||
|
|
30d0485da3 | ||
|
|
3232abab68 | ||
|
|
6add9f7cad | ||
|
|
e8ca15df06 | ||
|
|
1061864cae | ||
|
|
26449dd5c9 | ||
|
|
72e822950b | ||
|
|
d3396a4c9b | ||
|
|
1269b35dbd | ||
|
|
0163625507 | ||
|
|
b28c1e6795 |
45
.gitea/workflows/build_container.yml
Normal file
45
.gitea/workflows/build_container.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*' # Trigger on any git tag
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker:latest
|
||||
|
||||
steps:
|
||||
- name: Install dedps
|
||||
run: |
|
||||
apk add --no-cache nodejs npm git
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build container image
|
||||
env:
|
||||
REGISTRY: https://gitea.papryk.com
|
||||
IMAGE_NAME: papryk/dj-spangebob
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
run: |
|
||||
docker build -t "$IMAGE_NAME:$TAG" .
|
||||
|
||||
- name: Log in to Docker registry
|
||||
env:
|
||||
REGISTRY: https://gitea.papryk.com
|
||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
run: |
|
||||
echo "$REGISTRY_PASSWORD" | podman login "$REGISTRY" -u "$REGISTRY_USERNAME" --password-stdin
|
||||
|
||||
- name: Build and push Docker image
|
||||
env:
|
||||
REGISTRY: https://gitea.papryk.com
|
||||
IMAGE_NAME: Papryk/dj-spangebob
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
run: |
|
||||
podman push "$REGISTRY/$IMAGE_NAME:$TAG"
|
||||
|
||||
Reference in New Issue
Block a user