From d73c4be89c0fe47cc749cf514c1d30807715c815 Mon Sep 17 00:00:00 2001 From: Amir Pourmand Date: Sat, 16 Apr 2022 19:07:48 +0430 Subject: [PATCH] Create deploy-image.yml --- .github/workflows/deploy-image.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy-image.yml diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml new file mode 100644 index 0000000..ccc936c --- /dev/null +++ b/.github/workflows/deploy-image.yml @@ -0,0 +1,33 @@ +name: Docker Image CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + push: true + file: {context}/publish/Dockerfile + tags: amirpourmand/foam-template:latest