Skip to content

Commit

Permalink
fix: Adicionar etapas de implantação packages para produção, staging …
Browse files Browse the repository at this point in the history
…e desenvolvimento
  • Loading branch information
nataliagranato committed Sep 14, 2024
1 parent 01eccd1 commit 4758d2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ jobs:
- name: Build packages with Melange
run: |
cd chainguard/environments/dev
melange build melange-prod.yaml --runner docker --signing-key melange.rsa --arch amd64
melange build melange-dev.yaml --runner docker --signing-key melange.rsa --arch amd64
# Construir imagem de container com APKO
- name: Build container image with APKO
run: |
cd chainguard/environments/dev
apko build apko-prod.yaml senhas senhas-prod.tar -k melange.rsa.pub --arch amd64
apko build apko-dev.yaml senhas senhas-dev.tar -k melange.rsa.pub --arch amd64
# Log in no GitHub Container Registry
- name: Log in to GitHub Container Registry
Expand All @@ -69,7 +69,7 @@ jobs:
- name: Load Docker image
run: |
cd chainguard/environments/dev
docker load < senhas-prod.tar
docker load < senhas-dev.tar
docker images
docker tag senhas:latest-amd64 ghcr.io/nataliagranato/senhas-dev:$(date +%s)
docker push ghcr.io/nataliagranato/senhas-dev:$(date +%s)
6 changes: 3 additions & 3 deletions .github/workflows/package-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ jobs:
- name: Build packages with Melange
run: |
cd chainguard/environments/stg
melange build melange-prod.yaml --runner docker --signing-key melange.rsa --arch amd64
melange build melange-stg.yaml --runner docker --signing-key melange.rsa --arch amd64
# Construir imagem de container com APKO
- name: Build container image with APKO
run: |
cd chainguard/environments/stg
apko build apko-prod.yaml senhas senhas-prod.tar -k melange.rsa.pub --arch amd64
apko build apko-stg.yaml senhas senhas-stg.tar -k melange.rsa.pub --arch amd64
# Log in no GitHub Container Registry
- name: Log in to GitHub Container Registry
Expand All @@ -69,7 +69,7 @@ jobs:
- name: Load Docker image
run: |
cd chainguard/environments/stg
docker load < senhas-prod.tar
docker load < senhas-stg.tar
docker images
docker tag senhas:latest-amd64 ghcr.io/nataliagranato/senhas-stg:$(date +%s)
docker push ghcr.io/nataliagranato/senhas-stg:$(date +%s)

0 comments on commit 4758d2b

Please sign in to comment.