Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
TIVMOF authored Apr 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 54a98ad commit a37ac1a
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -7,7 +7,27 @@ on:

jobs:
main:
uses: codbex/codbex-infra/.github/workflows/application-build.yaml@main
with:
application-name: online_bank
secrets: inherit
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Initialize Buildx
run: |
docker buildx create --name codbex-builder || true
docker buildx use codbex-builder
- name: Build Docker Image
run: |
docker buildx build --tag online_bank -o type=image --platform=linux/arm64,linux/amd64 .
- name: Login to GitHub Container Registry
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login ghcr.io -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Push Docker Image to GitHub Container Registry
run: |
docker buildx build --push --tag ghcr.io/codbex/online_bank:latest -o type=image --platform=linux/arm64,linux/amd64 .

0 comments on commit a37ac1a

Please sign in to comment.