Skip to content

Commit

Permalink
GitHub Actions: geração correta de manifest - 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbullajr committed May 9, 2024
1 parent 68c9acc commit 87711e6
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ jobs:
- name: Docker Image - BU Service
run: |
cd logs-transparentes/backend/bu_service
docker build . --file Dockerfile --tag ghcr.io/larc-logs-transparentes/bu-service:${{env.IMAGE_TAG}} --build-arg ARCH=amd64/
docker build -t ghcr.io/larc-logs-transparentes/bu-service:${{env.IMAGE_TAG}} .
- name: Docker Image - Backend Public
run: |
cd logs-transparentes/backend/public
docker build . --file Dockerfile --tag ghcr.io/larc-logs-transparentes/back-pub:${{env.IMAGE_TAG}} --build-arg ARCH=amd64/
docker build -t ghcr.io/larc-logs-transparentes/back-pub:${{env.IMAGE_TAG}} .
- name: Docker Image - Frontend
run: |
cd logs-transparentes/frontend_new
docker build . --file Dockerfile --tag ghcr.io/larc-logs-transparentes/frontend:${{env.IMAGE_TAG}} --build-arg ARCH=amd64/
docker build -t ghcr.io/larc-logs-transparentes/frontend:${{env.IMAGE_TAG}} .
- name: Docker Image - TL Manager
run: |
cd logs-transparentes/tlmanager
docker build . --file Dockerfile --tag ghcr.io/larc-logs-transparentes/tlmanager:${{env.IMAGE_TAG}} --build-arg ARCH=amd64/
docker build -t ghcr.io/larc-logs-transparentes/tlmanager:${{env.IMAGE_TAG}} .
- name: Download config source
uses: actions/checkout@v4
Expand Down Expand Up @@ -79,10 +79,14 @@ jobs:

- name: Publish images to ghcr.io
run: |
docker push --all-tags ghcr.io/larc-logs-transparentes/bu-service
docker push --all-tags ghcr.io/larc-logs-transparentes/back-pub
docker push --all-tags ghcr.io/larc-logs-transparentes/frontend
docker push --all-tags ghcr.io/larc-logs-transparentes/tlmanager
docker manifest annotate --arch amd64 --os linux ghcr.io/larc-logs-transparentes/bu-service:${{env.IMAGE_TAG}}
docker push ghcr.io/larc-logs-transparentes/bu-service:${{env.IMAGE_TAG}}
docker manifest annotate --arch amd64 --os linux ghcr.io/larc-logs-transparentes/back-pub:${{env.IMAGE_TAG}}
docker push ghcr.io/larc-logs-transparentes/back-pub:${{env.IMAGE_TAG}}
docker manifest annotate --arch amd64 --os linux ghcr.io/larc-logs-transparentes/frontend:${{env.IMAGE_TAG}}
docker push ghcr.io/larc-logs-transparentes/frontend:${{env.IMAGE_TAG}}
docker manifest annotate --arch amd64 --os linux ghcr.io/larc-logs-transparentes/tlmanager:${{env.IMAGE_TAG}}
docker push ghcr.io/larc-logs-transparentes/tlmanager:${{env.IMAGE_TAG}}
- name: Tag Repository logs-transparentes
uses: actions/github-script@v6
Expand Down Expand Up @@ -139,10 +143,14 @@ jobs:

- name: Publish MacOS images to ghcr.io
run: |
docker push --all-tags ghcr.io/larc-logs-transparentes/bu-service
docker push --all-tags ghcr.io/larc-logs-transparentes/back-pub
docker push --all-tags ghcr.io/larc-logs-transparentes/frontend
docker push --all-tags ghcr.io/larc-logs-transparentes/tlmanager
docker manifest annotate --arch arm64 --os linux ghcr.io/larc-logs-transparentes/bu-service:${{env.IMAGE_ARM_TAG}}
docker push ghcr.io/larc-logs-transparentes/bu-service:${{env.IMAGE_ARM_TAG}}
docker manifest annotate --arch arm64 --os linux ghcr.io/larc-logs-transparentes/back-pub:${{env.IMAGE_ARM_TAG}}
docker push ghcr.io/larc-logs-transparentes/back-pub:${{env.IMAGE_ARM_TAG}}
docker manifest annotate --arch arm64 --os linux ghcr.io/larc-logs-transparentes/frontend:${{env.IMAGE_ARM_TAG}}
docker push ghcr.io/larc-logs-transparentes/frontend:${{env.IMAGE_ARM_TAG}}
docker manifest annotate --arch arm64 --os linux ghcr.io/larc-logs-transparentes/tlmanager:${{env.IMAGE_ARM_TAG}}
docker push ghcr.io/larc-logs-transparentes/tlmanager:${{env.IMAGE_ARM_TAG}}
docker-manifest:
Expand Down

0 comments on commit 87711e6

Please sign in to comment.