diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml new file mode 100644 index 0000000..2fa39c2 --- /dev/null +++ b/.github/workflows/build-docker-image.yml @@ -0,0 +1,22 @@ +name: Build Docker Image + +on: + push: + branches: + - production + +jobs: + build-docker-image: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@master + - name: docker login + env: + DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + run: echo $DOCKER_TOKEN | docker login --username $DOCKER_USERNAME --password-stdin + - run: \rm -fr .git + - run: docker build -t dmitryrck/ruby:3.2.2build3 dockerfiles/3.2.2build3 + - run: docker push dmitryrck/ruby:3.2.2build3