Skip to content

Commit

Permalink
feat: ajustes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Veroneze committed Apr 26, 2023
1 parent faff3d4 commit b2d4508
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 23 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/pipeline-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
RELEASE: ${{ github.event.release.tag_name }}

jobs:
generate-publish-docker:
Expand All @@ -24,30 +25,18 @@ jobs:
run: |
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build base images
run: cd Aspnet/Base && ./build.sh
shell: bash

- name: Push base images
- name: Base - Build and Push
run: |
docker tag jacksonveroneze/aspnet:7.0-alpine jacksonveroneze/aspnet:7.0-alpine-${{ github.event.release.tag_name }}
docker tag jacksonveroneze/aspnet:7.0-ubuntu jacksonveroneze/aspnet:7.0-ubuntu-${{ github.event.release.tag_name }}
docker tag jacksonveroneze/aspnet:7.0-debian jacksonveroneze/aspnet:7.0-debian-${{ github.event.release.tag_name }}
docker push jacksonveroneze/aspnet:7.0-alpine-${{ github.event.release.tag_name }}
docker push jacksonveroneze/aspnet:7.0-ubuntu-${{ github.event.release.tag_name }}
docker push jacksonveroneze/aspnet:7.0-debian-${{ github.event.release.tag_name }}
- name: Build xray images
run: cd Aspnet/X-Ray && ./build.sh
cd Aspnet/Base
./build.sh
./create-tag.sh
./push.sh
shell: bash

- name: Push xray images
- name: X-Ray - Build and Push
run: |
docker tag jacksonveroneze/aspnet:7.0-alpine-xray jacksonveroneze/aspnet:7.0-alpine-xray-${{ github.event.release.tag_name }}
docker tag jacksonveroneze/aspnet:7.0-ubuntu-xray jacksonveroneze/aspnet:7.0-ubuntu-xray-${{ github.event.release.tag_name }}
docker tag jacksonveroneze/aspnet:7.0-debian-xray jacksonveroneze/aspnet:7.0-debian-xray-${{ github.event.release.tag_name }}
docker push jacksonveroneze/aspnet:7.0-alpine-xray-${{ github.event.release.tag_name }}
docker push jacksonveroneze/aspnet:7.0-ubuntu-xray-${{ github.event.release.tag_name }}
docker push jacksonveroneze/aspnet:7.0-debian-xray-${{ github.event.release.tag_name }}
cd Aspnet/X-Ray
./build.sh
./create-tag.sh
./push.sh
shell: bash
10 changes: 10 additions & 0 deletions Aspnet/Base/create-tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#Alpine
docker tag jacksonveroneze/aspnet:7.0-alpine jacksonveroneze/aspnet:7.0-alpine-$RELEASE

#Ubuntu
docker tag jacksonveroneze/aspnet:7.0-ubuntu jacksonveroneze/aspnet:7.0-ubuntu-$RELEASE

#Debian
docker tag jacksonveroneze/aspnet:7.0-debian jacksonveroneze/aspnet:7.0-debian-$RELEASE
10 changes: 10 additions & 0 deletions Aspnet/Base/push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#Alpine
docker push jacksonveroneze/aspnet:7.0-alpine-$RELEASE

#Ubuntu
docker push jacksonveroneze/aspnet:7.0-ubuntu-$RELEASE

#Debian
docker push jacksonveroneze/aspnet:7.0-debian-$RELEASE
10 changes: 10 additions & 0 deletions Aspnet/X-Ray/create-tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#Alpine
docker tag jacksonveroneze/aspnet:7.0-alpine jacksonveroneze/aspnet:7.0-alpine-xray-$RELEASE

#Ubuntu
docker tag jacksonveroneze/aspnet:7.0-ubuntu jacksonveroneze/aspnet:7.0-ubuntu-xray-$RELEASE

#Debian
docker tag jacksonveroneze/aspnet:7.0-debian jacksonveroneze/aspnet:7.0-debian-xray-$RELEASE
10 changes: 10 additions & 0 deletions Aspnet/X-Ray/push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#Alpine
docker push jacksonveroneze/aspnet:7.0-alpine-xray-$RELEASE

#Ubuntu
docker push jacksonveroneze/aspnet:7.0-ubuntu-xray-$RELEASE

#Debian
docker push jacksonveroneze/aspnet:7.0-debian-xray-$RELEASE

0 comments on commit b2d4508

Please sign in to comment.