diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..34d57c3f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,42 @@ +name: Publish image +on: + push: + tags: + - '*' + +jobs: + publish-app: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Extract metadata for the Docker image + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ vars.DOCKERHUB_USERNAME }}/christmas-community + context: git + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v6 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml new file mode 100644 index 00000000..e92c1f2b --- /dev/null +++ b/.github/workflows/version.yml @@ -0,0 +1,29 @@ +name: Bump version +on: + push: + branches: + - master + paths-ignore: + - 'package.json' + - 'README.md' + +jobs: + version-app: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_TOKEN_ACTION }} + + - name: Bump version and push tag + id: changelog + uses: TriPSs/conventional-changelog-action@v6 + with: + github-token: "${{ secrets.GH_TOKEN_ACTION }}" + git-user-name: "github-actions[bot]" + git-user-email: "github-actions[bot]@users.noreply.github.com" + preset: "conventionalcommits" + output-file: false + # skip-on-empty: false # good for testing + skip-ci: false diff --git a/README.md b/README.md index 8a45f079..1755b475 100644 --- a/README.md +++ b/README.md @@ -170,10 +170,10 @@ Hi, I'm Wingy. I made this app. My website is [samwing.dev](https://samwing.dev)
- - Wingysam + + cj13579
- Wingysam + cj13579
@@ -327,6 +327,13 @@ Hi, I'm Wingy. I made this app. My website is [samwing.dev](https://samwing.dev) StS82 + + + alyoro +
+ alyoro +
+ toastie89