Skip to content

Commit

Permalink
chore: push image to ghcr, too
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Oct 31, 2024
1 parent 6feb6c2 commit 951f285
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write

environment:
name: Production
Expand All @@ -30,9 +32,18 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- 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
tags: freqtradeorg/frequi:latest
tags: |
freqtradeorg/frequi:latest
ghcr.io/freqtrade/frequi:latest

0 comments on commit 951f285

Please sign in to comment.