mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-22 13:02:21 -04:00
ci: Publish docker images to ghcr.io instead of docker hub
This commit is contained in:
parent
8adf86d010
commit
91482f1e16
1 changed files with 10 additions and 6 deletions
14
.github/workflows/build-release-binaries.yml
vendored
14
.github/workflows/build-release-binaries.yml
vendored
|
@ -130,6 +130,9 @@ jobs:
|
|||
name: Build and Push Docker Image
|
||||
runs-on: ubuntu-latest
|
||||
needs: build_binaries
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
@ -139,19 +142,20 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set Docker tags
|
||||
id: docker_tags
|
||||
run: |
|
||||
if [[ ${{ github.event.release.tag_name }} == "preview" ]]; then
|
||||
echo "::set-output name=preview::true"
|
||||
echo "preview=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "::set-output name=preview::false"
|
||||
echo "preview=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Build and push Docker image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue