This commit is contained in:
@@ -12,20 +12,19 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Docker Buildx
|
- name: Build Docker Image
|
||||||
uses: docker/setup-buildx-action@v2
|
run: |
|
||||||
|
docker build -t git.alexav.gg/${{ gitea.repository }}:latest .
|
||||||
|
docker build -t git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} .
|
||||||
|
|
||||||
- name: Login to Gitea Reg
|
- name: Login to Gitea Reg
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.RUNNER_TOKEN }}" | docker login git.alexav.gg -u ${{ gitea.actor }} --password-stdin
|
echo "${{ secrets.RUNNER_TOKEN }}" | docker login git.alexav.gg -u ${{ gitea.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Push Docker Image
|
||||||
uses: docker/build-push-action@v4
|
run: |
|
||||||
with:
|
docker push git.alexav.gg/${{ gitea.repository }}:latest
|
||||||
context: .
|
docker push git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }}
|
||||||
push: true
|
|
||||||
tags: |
|
- name: Cleanup
|
||||||
git.alexav.gg/${{ gitea.repository }}:latest
|
run: docker logout git.alexav.gg
|
||||||
git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }}
|
|
||||||
cache-from: type=registry,ref=git.alexav.gg/${{ gitea.repository }}:buildcache
|
|
||||||
cache-to: type=registry, ref=git.alexav.gg/${{ gitea.repository }}:buildcache,mode=max
|
|
||||||
|
|||||||
Reference in New Issue
Block a user