From f46b17d6ef5814862110b5740653d0ad696af0bd Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:26:45 -0500 Subject: [PATCH 1/9] Create npm-publish.yml --- .github/workflows/npm-publish.yml | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..4d29a73 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,48 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Node.js Package +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{github.repository}} + GIT_TOKEN: ${{secrets.GIT_TOKEN}} +on: + push: + branches: ["main"] + pull_request: + branches: "*" +jobs: + ## docker publication normal + publish-docker-normal: + runs-on: ubuntu-latest + env: + GIT_TOKEN: ${{secrets.GIT_TOKEN}} + permissions: + contents: read + packages: write + if: ${{github.ref == 'refs/heads/main'}} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Log in to the Container registry + uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GIT_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=branch + type=sha + - run: ls -a -R . + - name: Build and push Docker image + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} From f932d459344fd605c1abf9c09be10d8c113b94f5 Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:28:11 -0500 Subject: [PATCH 2/9] update workflow --- .github/{workflows => workflow}/npm-publish.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => workflow}/npm-publish.yml (100%) diff --git a/.github/workflows/npm-publish.yml b/.github/workflow/npm-publish.yml similarity index 100% rename from .github/workflows/npm-publish.yml rename to .github/workflow/npm-publish.yml From 40a112ac5e6f44880cfa52c8fcc4b30a5c162e09 Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:28:56 -0500 Subject: [PATCH 3/9] Create main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1 @@ + From 2d8fc210b2e4647468b7daaff84d09b79a61f134 Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:29:39 -0500 Subject: [PATCH 4/9] update workflow --- .../{workflow/npm-publish.yml => workflows/docker-publish.yml} | 0 .github/workflows/main.yml | 1 - 2 files changed, 1 deletion(-) rename .github/{workflow/npm-publish.yml => workflows/docker-publish.yml} (100%) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflow/npm-publish.yml b/.github/workflows/docker-publish.yml similarity index 100% rename from .github/workflow/npm-publish.yml rename to .github/workflows/docker-publish.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8b13789..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1 +0,0 @@ - From e78dc5335a6a126ef4615bc60595d2f6e4817637 Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:30:30 -0500 Subject: [PATCH 5/9] Create main.yml --- .github/workflows/main.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4d29a73 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,48 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Node.js Package +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{github.repository}} + GIT_TOKEN: ${{secrets.GIT_TOKEN}} +on: + push: + branches: ["main"] + pull_request: + branches: "*" +jobs: + ## docker publication normal + publish-docker-normal: + runs-on: ubuntu-latest + env: + GIT_TOKEN: ${{secrets.GIT_TOKEN}} + permissions: + contents: read + packages: write + if: ${{github.ref == 'refs/heads/main'}} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Log in to the Container registry + uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GIT_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=branch + type=sha + - run: ls -a -R . + - name: Build and push Docker image + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} From e1bac0d251c21c841a15ad7b0a1420ec07877301 Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:31:38 -0500 Subject: [PATCH 6/9] Create text.txt --- text.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 text.txt diff --git a/text.txt b/text.txt new file mode 100644 index 0000000..7363c48 --- /dev/null +++ b/text.txt @@ -0,0 +1 @@ +dgzj \ No newline at end of file From 1d9bdfd84f1316af8de541428d3c9efc523cb4cd Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:32:05 -0500 Subject: [PATCH 7/9] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4d29a73..044d56d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -8,7 +8,7 @@ env: GIT_TOKEN: ${{secrets.GIT_TOKEN}} on: push: - branches: ["main"] + branches: ["master"] pull_request: branches: "*" jobs: From 78d7341ddf261db12e956648695c04d36c2d93cd Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:32:22 -0500 Subject: [PATCH 8/9] Delete main.yml --- .github/workflows/main.yml | 48 -------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 4d29a73..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,48 +0,0 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages - -name: Node.js Package -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{github.repository}} - GIT_TOKEN: ${{secrets.GIT_TOKEN}} -on: - push: - branches: ["main"] - pull_request: - branches: "*" -jobs: - ## docker publication normal - publish-docker-normal: - runs-on: ubuntu-latest - env: - GIT_TOKEN: ${{secrets.GIT_TOKEN}} - permissions: - contents: read - packages: write - if: ${{github.ref == 'refs/heads/main'}} - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GIT_TOKEN }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=ref,event=branch - type=sha - - run: ls -a -R . - - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} From 81b2a8831eec05c495de044312e5ef8cca2ac2fd Mon Sep 17 00:00:00 2001 From: Bednaz98 <30347432+Bednaz98@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:34:33 -0500 Subject: [PATCH 9/9] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 044d56d..5ad7472 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -20,7 +20,6 @@ jobs: permissions: contents: read packages: write - if: ${{github.ref == 'refs/heads/main'}} steps: - name: Checkout repository uses: actions/checkout@v3