frequi_origin/.github/workflows/docker.yml

50 lines
1.0 KiB
YAML
Raw Normal View History

name: Build and Publish Docker Container
on:
2024-10-31 17:26:47 +00:00
push:
branches:
- main
- docker_container
# pull_request:
# branches:
# - main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
2024-10-31 18:17:35 +00:00
permissions:
packages: write
environment:
name: Production
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2024-10-31 18:17:35 +00:00
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
2024-10-31 18:17:35 +00:00
tags: |
freqtradeorg/frequi:latest
ghcr.io/freqtrade/frequi:latest