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
|
name: Build and Push Docker Image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build_binaries
|
needs: build_binaries
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.1.7
|
||||||
|
@ -139,19 +142,20 @@ jobs:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set Docker tags
|
- name: Set Docker tags
|
||||||
id: docker_tags
|
id: docker_tags
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ github.event.release.tag_name }} == "preview" ]]; then
|
if [[ ${{ github.event.release.tag_name }} == "preview" ]]; then
|
||||||
echo "::set-output name=preview::true"
|
echo "preview=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "::set-output name=preview::false"
|
echo "preview=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue