diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index fa4b7ca..45dcf51 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -45,6 +45,7 @@ jobs: ghcr.io/${{ github.repository }}/ubuntu-sshd - name: Build and push to Docker Hub and GitHub Container Registry + id: build uses: docker/build-push-action@v5 with: context: . @@ -55,6 +56,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} - name: Generate artifact attestation + id: attest uses: actions/attest-build-provenance@v1 with: subject-name: ghcr.io/${{ github.repository }}/ubuntu-sshd diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 711cce2..9a5b098 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,9 @@ name: Docker Image CI on: + push: + branches: + - 'main' pull_request: branches: - 'main' diff --git a/README.md b/README.md index b1d607b..6cb7661 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # SSH-Enabled Ubuntu Docker Image -[![Docker Image CI](https://github.com/aoudiamoncef/ubuntu-sshd/actions/workflows/ci_cd.yml/badge.svg)](https://github.com/aoudiamoncef/ubuntu-sshd/actions/workflows/ci.yml) -[![Docker Image Deployment](https://github.com/aoudiamoncef/ubuntu-sshd/actions/workflows/ci_cd.yml/badge.svg)](https://github.com/aoudiamoncef/ubuntu-sshd/actions/workflows/cd.yml) +[![Docker Image CI](https://github.com/aoudiamoncef/ubuntu-sshd/actions/workflows/ci.yml/badge.svg)](https://github.com/aoudiamoncef/ubuntu-sshd/actions/workflows/ci.yml) +[![Docker Image Deployment](https://github.com/aoudiamoncef/ubuntu-sshd/actions/workflows/cd.yml/badge.svg)](https://github.com/aoudiamoncef/ubuntu-sshd/actions/workflows/cd.yml) [![Docker Pulls](https://img.shields.io/docker/pulls/aoudiamoncef/ubuntu-sshd.svg)](https://hub.docker.com/r/aoudiamoncef/ubuntu-sshd) [![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)](https://github.com/aoudiamoncef/ubuntu-sshd)