Skip to content

Commit

Permalink
Merge pull request #2 from juntossomosmais/feat/add-workflows
Browse files Browse the repository at this point in the history
feat: add conifg workflow
  • Loading branch information
lizarbventurim authored Oct 23, 2024
2 parents fde6176 + bb29485 commit 766fcfb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-image-docker.yml
Original file line number Diff line number Diff line change
@@ -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 }}
File renamed without changes.

0 comments on commit 766fcfb

Please sign in to comment.