diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3f9adf7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +on: + push: + pull_request: + +jobs: + buildANDpush: + runs-on: ubuntu + steps: + - name: checkout code + uses: actions/checkout@v5.0.0 + + - name: login to dockerhub + uses: docker/login-action@v3.6.0 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: ahmedhesham301/nginx:latest + + # ci: + # needs: buildANDpush + # runs-on: ubuntu + # steps: + # - name: install ghaymah cli + # run: echo hello