-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
IoTechCrafts
committed
Aug 31, 2024
1 parent
ad1ff06
commit 7d79f97
Showing
5 changed files
with
99 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CI/CD Build MultiArch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.CICD_TOKEN_TripPlanner }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
push: true | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
ghcr.io/jalcocert/py-trip-planner:v2.0 | ||
ghcr.io/jalcocert/py-trip-planner:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CI/CD Pipeline to DockerHub | ||
|
||
on: | ||
workflow_dispatch: #trigger button | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
build-and-push-x86: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository #get the source code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx #install docker | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- uses: actions/checkout@v1 | ||
- name: Build & Push Image to DockerHub | ||
run: | | ||
echo "${{ secrets.CICD_DASH_TOKEN_DOCKERHUB }}" | docker login -u "fossengineer" --password-stdin | ||
docker image build -t fossengineer/trip_planner:amd64 . | ||
docker push fossengineer/trip_planner:2-amd64 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters