bot-louis/.github/workflows/push-docker-stable.yml
Louis Gallet de489fe79a
Some checks failed
Publish staging Docker image / Push Docker image to Gitea Container Registry (push) Has been cancelled
ci: 💚 Update ci with stagging and stable
2024-03-03 15:16:07 +01:00

51 lines
1.6 KiB
YAML

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Publish staging Docker image
on:
push:
branches:
- main
jobs:
push_to_registry:
name: Push Docker image to Gitea Container Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: gitea.louisgallet.fr
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
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 Docker image
uses: docker/build-push-action@v2
with:
context: .
platforms: "linux/amd64,linux/arm64"
file: ./Dockerfile
push: true
tags: gitea.louisgallet.fr/lgallet/bot-louis:latest
labels: VERSION=stable