diff --git a/.github/workflows/ga-image-build-master.yml b/.github/workflows/ga-image-build-master.yml new file mode 100644 index 0000000..bd697ec --- /dev/null +++ b/.github/workflows/ga-image-build-master.yml @@ -0,0 +1,31 @@ +name: 🐳 On Master - Build and Push Docker Image + +on: + push: + branches: ["master"] + +jobs: + build-image: + name: 🏗️ Build Image + runs-on: ubuntu-latest + + steps: + - name: 🐧 Checkout + uses: actions/checkout@v3 + - name: 📦 Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: 🐳 Login to docker.01-edu.org Registry + uses: docker/login-action@v2 + with: + registry: docker.01-edu.org + username: ${{ secrets.USER_DOCKER_01EDU_ORG }} + password: ${{ secrets.SECRET_DOCKER_01EDU_ORG }} + - name: 🏗️ Build the Check-Links Docker image + run: | + docker build . --file Dockerfile --tag ghcr.io/01-edu/check-links:latest + docker push ghcr.io/01-edu/check-links:latest diff --git a/action.yml b/action.yml index ee609b5..5885cf1 100644 --- a/action.yml +++ b/action.yml @@ -11,4 +11,4 @@ inputs: #required: false runs: using: docker - image: Dockerfile + image: ghcr.io/01-edu/check-links:latest