diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..4402d08 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,26 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: panchajanya1999 + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image + run: | + docker build -f Dockerfile . -t panchajanya1999/archlinux:latest + docker push panchajanya1999/archlinux:latest diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 9d120d3..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Github-Actions - -on: [push, pull_request] - -jobs: - ci-test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: make ci-test - run: make ci-test