Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
test docker hub
  • Loading branch information
HazemAlindari authored Feb 21, 2024
1 parent 3f1f7aa commit 247a943
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docker Image CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu- latest
steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USER: {{secrets.DOCKER_USERNAME)}
DOCKER_PASSWORD: {{secrets.DOCKER_PASSWORD)}
run:
docker login -u SDOCKER_USER -P SDOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --progress plain --tag hazemjaki/chipyard:S{{ github.sha }}

- name: Docker Push
run: docker push hazemjaki/chipyard:S{{ github.sha }}

0 comments on commit 247a943

Please sign in to comment.