Skip to content

Commit

Permalink
Add image PFTP to build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Silva committed Dec 23, 2022
1 parent 12e735f commit 7e86015
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/workflow_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ on:
create:
branches-ignore:
- main
- 'releases/**'
tags-ignore:
- '**'
push:
branches-ignore:
- main
- 'releases/**'
tags-ignore:
- '**'
pull_request:
branches-ignore:
- main
- 'releases/**'
tags-ignore:
- '**'

Expand All @@ -33,13 +36,53 @@ jobs:
id: on_changes
with:
filters: |
pftp:
- 'web/**'
- 'server/**'
- 'docker/pftp/**'
web:
- 'web/**'
- 'docker/nginx/**'
server:
- 'server/**'
pureftpd:
- 'docker/pure-ftpd/**'
Build-PFTP:
needs: [filter-paths]
if: ${{ needs.filter-paths.outputs.pftp == 'true' }}
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: PFTP Docker meta
id: pftp_meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.ATP_REGISTRY_URL }}/pftp/pftp
tags: ${{ env.GITHUB_REF_NAME }}
- name: Login Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.ATP_REGISTRY_URL }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push PFTP
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.pftp_meta.outputs.tags }}
file: docker/pftp/Dockerfile
platforms: linux/amd64,linux/arm64
Build-Frontend:
needs: [filter-paths]
if: ${{ needs.filter-paths.outputs.web == 'true' }}
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/workflow_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,53 @@ jobs:
id: on_changes
with:
filters: |
pftp:
- 'web/**'
- 'server/**'
- 'docker/pftp/**'
web:
- 'web/**'
- 'docker/nginx/**'
server:
- 'server/**'
pureftpd:
- 'docker/pure-ftpd/**'
Build-PFTP:
needs: [filter-paths]
if: ${{ needs.filter-paths.outputs.pftp == 'true' }}
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: PFTP Docker meta
id: pftp_meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKERHUB_REPOSITORY }}/pftp
tags: latest
- name: Login Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push PFTP
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.pftp_meta.outputs.tags }}
file: docker/pftp/Dockerfile
platforms: linux/amd64,linux/arm64
Build-Frontend:
needs: [filter-paths]
if: ${{ needs.filter-paths.outputs.web == 'true' }}
Expand Down

0 comments on commit 7e86015

Please sign in to comment.