diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..41495ed --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,31 @@ +name: Docker Image CI + +on: + push: + tags: + - 'v*.*.*' + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Repository checkout + uses: actions/checkout@v4 + - name: Login to gchr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Get metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/phoxwupsh/turto + - name: Build & Push Docker Image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file