Update .forgejo/workflows/buildpush.yaml
Some checks failed
Build And Test / build and push (push) Failing after 58s

This commit is contained in:
Jarkko Toivanen 2024-03-20 16:00:44 +02:00
parent f197c46fc7
commit 8953c5c4ed

View file

@ -17,20 +17,37 @@ jobs:
registry: git.jakest.us registry: git.jakest.us
- name: Checkout - name: Checkout
uses: https://github.com/actions/checkout@v4 uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3 - name: Extract metadata (tags, labels) for Docker
id: meta
uses: https://github.com/docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with: with:
config-inline: | images: jt/hopeasini
[registry."git.jakest.us"] # IP from local gitea instance
http = true
insecure = true
- name: Build and push Docker image - name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5 uses: https://github.com/docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
push: true push: true
tags: test tags: ${{ steps.meta.outputs.tags }}
- name: Stop the docker container labels: ${{ steps.meta.outputs.labels }}
continue-on-error: true
run: sudo docker stop homepage
# - name: Set up Docker Buildx
# uses: https://github.com/docker/setup-buildx-action@v3
# with:
# config-inline: |
# [registry."git.jakest.us"] # IP from local gitea instance
# http = true
# insecure = true
# - name: Build and push Docker image
# uses: https://github.com/docker/build-push-action@v5
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: test
# - name: Stop the docker container
# continue-on-error: true
# run: sudo docker stop homepage