try build-push action
Some checks failed
Build and Publish Runner Image / build (push) Failing after 1m37s
Some checks failed
Build and Publish Runner Image / build (push) Failing after 1m37s
This commit is contained in:
@@ -12,19 +12,20 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build -t git.alexav.gg/${{ gitea.repository }}:latest .
|
||||
docker build -t git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} .
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Gitea Reg
|
||||
run: |
|
||||
echo "${{ secrets.RUNNER_TOKEN }}" | docker login git.alexav.gg -u ${{ gitea.actor }} --password-stdin
|
||||
|
||||
- name: Push Docker Image
|
||||
run: |
|
||||
docker push git.alexav.gg/${{ gitea.repository }}:latest
|
||||
docker push git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }}
|
||||
|
||||
- name: Cleanup
|
||||
run: docker logout git.alexav.gg
|
||||
- name: Build Docker Image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.alexav.gg/${{ gitea.repository }}:latest
|
||||
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