Skip to content

Commit

Permalink
Merge pull request #145 from n-thumann/merge_docker_create-release_wo…
Browse files Browse the repository at this point in the history
…rkflow

Merge Docker into create-release workflow
  • Loading branch information
n-thumann authored Apr 6, 2022
2 parents 9418546 + 4db6ec7 commit 3fa0779
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 46 deletions.
41 changes: 37 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: Get tag
run: |
echo TAG=$(git log -1 --format='%B' --no-merges) | tee -a $GITHUB_ENV
echo TAG=v$(git log -1 --format='%B' --no-merges) | tee -a $GITHUB_ENV
- name: Create release
uses: actions/github-script@v6
Expand All @@ -22,7 +22,40 @@ jobs:
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: "v${{ env.TAG }}",
name: "IPTV-ReStream v${{ env.TAG }}",
tag_name: "${{ env.TAG }}",
name: "IPTV-ReStream ${{ env.TAG }}",
generate_release_notes: true
})
})
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
nthumann/iptv-restream:latest
nthumann/iptv-restream:${{ env.TAG }}
ghcr.io/${{ github.repository_owner }}/iptv-restream:latest
ghcr.io/${{ github.repository_owner }}/iptv-restream:${{ env.TAG }}
42 changes: 0 additions & 42 deletions .github/workflows/docker.yml

This file was deleted.

0 comments on commit 3fa0779

Please sign in to comment.