From bb29485952666fb7eab74b0fa96dbae2b31de651 Mon Sep 17 00:00:00 2001 From: Lizarb Venturim Date: Wed, 23 Oct 2024 14:59:03 -0300 Subject: [PATCH] feat: add conifg workflow --- .github/workflows/publish-image-docker.yml | 30 ++++++++++++++++++++++ DockerFile => Dockerfile | 0 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/publish-image-docker.yml rename DockerFile => Dockerfile (100%) diff --git a/.github/workflows/publish-image-docker.yml b/.github/workflows/publish-image-docker.yml new file mode 100644 index 0000000..64baee8 --- /dev/null +++ b/.github/workflows/publish-image-docker.yml @@ -0,0 +1,30 @@ +name: Build and publish packer +on: + push: + branches: + - main + paths: + - 'Dockerfile' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Project checkout + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_HUB_USER }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + - name: Build and push + uses: docker/build-push-action@v6 + with: + platforms: linux/amd64 + push: true + file: Dockerfile + tags: | + ${{ github.repository }}:latest + ${{ github.repository }}:${{ github.sha }} diff --git a/DockerFile b/Dockerfile similarity index 100% rename from DockerFile rename to Dockerfile