Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions merge preview/ankit16 19 run every time #142

52 changes: 38 additions & 14 deletions .github/workflows/docker-alpha.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,53 @@
name: Update Docker alpha tag

on:
push:
branches: ["actions-merge-preview/**"]
pull_request:
branches: [ "main" ]
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 }}
47 changes: 34 additions & 13 deletions .github/workflows/docker-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/merge-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
preview:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nwtgck/actions-merge-preview@develop
Expand Down
51 changes: 38 additions & 13 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Loading