Compare commits
8
Commits
759fb86f76
...
prod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa4f00eaff | ||
|
|
4082107052 | ||
|
|
81b1c9d870 | ||
|
|
d914fe5df8 | ||
|
|
f994804a84 | ||
|
|
48ddb2d4a5 | ||
|
|
9c3187cabf | ||
|
|
a0b4b8d48c |
@@ -0,0 +1,27 @@
|
|||||||
|
name: Publish Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- prod
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: linux # make sure your Gitea runner supports Docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Log in to Gitea Container Registry
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.mrmoku.de -u ${{ secrets.REGISTRY_USER }} --password-stdin
|
||||||
|
|
||||||
|
- name: Get Git commit SHA
|
||||||
|
id: commit_sha
|
||||||
|
run: echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker build -t gitea.mrmoku.de/${{ secrets.REGISTRY_USER }}/bttersplit:${{ env.COMMIT_SHA }} .
|
||||||
|
|
||||||
|
- name: Push Docker image
|
||||||
|
run: |
|
||||||
|
docker push gitea.mrmoku.de/${{ secrets.REGISTRY_USER }}/bettersplit:${{ env.COMMIT_SHA }}
|
||||||
Reference in New Issue
Block a user