Use default template
Some checks failed
Publish Docker image / Push Docker image to Docker registry (push) Failing after 34s

This commit is contained in:
Tibo De Peuter 2024-01-21 17:51:13 +01:00
parent cc46852c88
commit 7df4ad1f59

View file

@ -1,36 +1,39 @@
name: Publish Docker image
on: [push]
on:
push:
branches:
- 'main'
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
name: Push Docker image to Docker registry
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
- name: Check out the repo
- name: Checkout
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker registry
uses: docker/login-action@v2
with:
registry: git.depeuter.dev
username: ${{ gitea.actor }}
password: ${{ secrets.APP_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
registry: git.depeuter.dev
images: tdpeuter/docker-test
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
tdpeuter/docker-test:latest