-
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.
- Loading branch information
Showing
7 changed files
with
48 additions
and
35 deletions.
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
File renamed without changes.
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,6 +11,7 @@ env: | |
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
bump_version: | ||
|
@@ -21,25 +22,25 @@ jobs: | |
version: ${{ steps.cz.outputs.version }} | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.5 | ||
with: | ||
fetch-depth: 0 | ||
token: "${{ secrets.ACCESS_TOKEN }}" | ||
ref: "main" | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Config Git User | ||
run: | | ||
git config --local user.email "$GIT_USER_EMAIL" | ||
git config --local user.name "$GIT_USER_NAME" | ||
git config --local pull.ff only | ||
- id: cz | ||
name: Create bump and changelog | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Create bump and changelog | ||
id: cz | ||
run: | | ||
python -m pip install -U commitizen | ||
cz bump --yes | ||
|
@@ -57,3 +58,32 @@ jobs: | |
|
||
- name: Print Version | ||
run: echo "Bumped to version ${{ steps.cz.outputs.version }}" | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- bump_version | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to GitHub container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
logout: false | ||
|
||
- name: Set repo name | ||
run: | | ||
repo=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]') | ||
echo "REPO=$repo" >> $GITHUB_ENV | ||
- name: Build and push | ||
run: | | ||
docker buildx build --platform linux/amd64,linux/arm64 -t ${{ env.REPO }}:latest --push . | ||
docker buildx build --platform linux/amd64,linux/arm64 -t ${{ env.REPO }}:${{ needs.bump_version.outputs.version }} --push . |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
FROM node:20 | ||
FROM node:20-alpine | ||
|
||
LABEL "com.github.actions.icon"="blue" | ||
LABEL "com.github.actions.color"="database" | ||
LABEL "com.github.actions.name"="json-diff-action" | ||
LABEL "com.github.actions.description"="Check for differences between at least 2 json files and show what member is missing by each file." | ||
LABEL "org.opencontainers.image.source"="https://github.com/Drafteame/json-diff-action" | ||
|
||
COPY . /action | ||
WORKDIR /action | ||
|
||
RUN npm install --production | ||
RUN npm install --omit=dev | ||
|
||
ENTRYPOINT ["node", "/action/index.js"] |
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