.gitea/workflows/docker-build.yml aktualisiert
Some checks failed
Build and Push Docker Container / build-and-push (push) Failing after -10s
Some checks failed
Build and Push Docker Container / build-and-push (push) Failing after -10s
This commit is contained in:
@@ -10,23 +10,21 @@ jobs:
|
||||
runs-on:
|
||||
- ubuntu-22.04
|
||||
steps:
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
config-inline: |
|
||||
[registry."git.kohout.dev.de"]
|
||||
|
||||
- name: Login to Docker Registry
|
||||
run: |
|
||||
echo "${{ secrets.ACCESS_TOKEN }}" | docker login git.kohout-dev.de -u "${{ secrets.USERNAME }}" --password-stdin
|
||||
|
||||
- name: Clone Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: "git.kohout-dev.de/rezepte/rezepte:${{gitea.sha}},git.kohout-dev.de/rezepte/rezepte:latest"
|
||||
|
||||
Reference in New Issue
Block a user