-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/nylonee/watchlistarr
- Loading branch information
Showing
6 changed files
with
174 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,51 @@ | ||
name: Update Docker alpha tag | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
push: | ||
branches: ["actions-merge-preview/**"] | ||
|
||
jobs: | ||
env: | ||
APP_NAME: watchlistarr | ||
DOCKER_FILE: docker/Dockerfile | ||
DOCKER_PLATFORMS: "linux/arm64/v8,linux/amd64" | ||
|
||
build: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up environment | ||
run: echo "DOCKER_TAG=$(date +%s)" >> $GITHUB_ENV | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build the Docker image | ||
run: docker build . --file docker/Dockerfile --tag nylonee/watchlistarr:${DOCKER_TAG} --label=VERSION=${DOCKER_TAG} | ||
- name: Push Docker image | ||
run: | | ||
docker tag nylonee/watchlistarr:${DOCKER_TAG} nylonee/watchlistarr:alpha | ||
docker push nylonee/watchlistarr:${DOCKER_TAG} | ||
docker push nylonee/watchlistarr:alpha | ||
|
||
- name: Docker Metadata action | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }} | ||
tags: | | ||
type=sha | ||
alpha | ||
- name: Docker Setup QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Docker Setup Buildx | ||
uses: docker/[email protected] | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Build and push Docker images | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ${{ env.DOCKER_FILE }} | ||
platforms: ${{ env.DOCKER_PLATFORMS }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,26 +4,47 @@ on: | |
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
env: | ||
APP_NAME: watchlistarr | ||
DOCKER_FILE: docker/Dockerfile | ||
DOCKER_PLATFORMS: "linux/arm64/v8,linux/amd64" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up environment | ||
run: echo "DOCKER_TAG=$(date +%s)" >> $GITHUB_ENV | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build the Docker image | ||
run: docker build . --file docker/Dockerfile --tag nylonee/watchlistarr:${DOCKER_TAG} --label=VERSION=${DOCKER_TAG} | ||
- name: Push Docker image | ||
run: | | ||
docker tag nylonee/watchlistarr:${DOCKER_TAG} nylonee/watchlistarr:beta | ||
docker push nylonee/watchlistarr:${DOCKER_TAG} | ||
docker push nylonee/watchlistarr:beta | ||
|
||
- name: Docker Metadata action | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }} | ||
tags: | | ||
type=sha | ||
beta | ||
- name: Docker Setup QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Docker Setup Buildx | ||
uses: docker/[email protected] | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Build and push Docker images | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ${{ env.DOCKER_FILE }} | ||
platforms: ${{ env.DOCKER_PLATFORMS }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# .github/workflows/merge-preview.yml | ||
name: "Merge preview" | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# https://github.com/orgs/community/discussions/25702 | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.PAT_TOKEN }} | ||
- uses: nwtgck/actions-merge-preview@develop | ||
with: | ||
github-token: ${{ secrets.PAT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,25 +4,50 @@ on: | |
release: | ||
types: [published] | ||
|
||
jobs: | ||
env: | ||
APP_NAME: watchlistarr | ||
DOCKER_FILE: docker/Dockerfile | ||
DOCKER_PLATFORMS: "linux/arm64/v8,linux/amd64" | ||
|
||
build: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up environment | ||
run: echo "DOCKER_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
|
||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build the Docker image | ||
run: docker build . --file docker/Dockerfile --tag nylonee/watchlistarr:${DOCKER_TAG} --label=VERSION=${DOCKER_TAG} | ||
- name: Push Docker image | ||
run: | | ||
docker tag nylonee/watchlistarr:${DOCKER_TAG} nylonee/watchlistarr:latest | ||
docker push nylonee/watchlistarr:${DOCKER_TAG} | ||
docker push nylonee/watchlistarr:latest | ||
|
||
- name: Docker Metadata action | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }} | ||
tags: | | ||
type=sha | ||
type=semver,pattern={{version}} | ||
latest | ||
- name: Docker Setup QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Docker Setup Buildx | ||
uses: docker/[email protected] | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Build and push Docker images | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ${{ env.DOCKER_FILE }} | ||
platforms: ${{ env.DOCKER_PLATFORMS }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters