forked from nprimo/check-links
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(buil-master): add action to build and push docker image to registry
- use prebuilt image to run GH action to improve performance
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ inputs: | |
#required: false | ||
runs: | ||
using: docker | ||
image: Dockerfile | ||
image: ghcr.io/01-edu/check-links:latest |