🚚 Moved and rename workflow file
/ docker (push) Failing after 22s Details

This commit is contained in:
Maxim Lebedev 2023-11-03 23:47:25 +06:00
parent a39397ac10
commit f2448a0142
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 14 additions and 7 deletions

View File

@ -1,9 +1,12 @@
---
name: "Create and publish a Docker image"
on: [push]
on:
push:
branches:
- master
- develop
env:
IMAGE_NAME: ${{ gitea.repository }}
DOCKER_REGISTRY: source.toby3d.me
jobs:
docker:
@ -16,22 +19,26 @@ jobs:
steps:
- name: Checkout
uses: https://gitea.com/actions/checkout@v3
- name: Set up QEMU
uses: https://gitea.com/docker/setup-qemu-action@v2
- name: Set up Docker BuildX
uses: https://gitea.com/docker/setup-buildx-action@v2
- name: Login to registry
uses: https://gitea.com/docker/login-action@v2
with:
registry: source.toby3d.me
username: ${{ gitea.actor }}
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ gitea.repository_owner }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: https://gitea.com/docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: "" # See https://gitea.com/gitea/act_runner/issues/119
uses: https://gitea.com/docker/build-push-action@v4
with:
context: .
file: ./build/Dockerfile
push: true
tags: source.toby3d.me/${{ gitea.repository }}:latest
tags: ${{ env.DOCKER_REGISTRY }}/${{ gitea.repository }}:${{ gitea.branch }}