Compare commits

...

5 Commits

Author SHA1 Message Date
d267ff74f5 Add release action
All checks were successful
Publish release / build (push) Successful in 26s
2024-11-06 17:01:30 -05:00
b4727335f5 Add release action
Some checks failed
Publish release / build (push) Failing after 1m2s
2024-11-06 16:59:21 -05:00
5b1e97a439 Remove docker image
Some checks failed
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Failing after 1m10s
2024-11-05 21:10:22 -05:00
4a6a6999aa Remove username docker
Some checks failed
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Has been cancelled
2024-11-05 21:07:59 -05:00
059750c5ee Remove reference for github
Some checks failed
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Has been cancelled
2024-11-05 21:05:25 -05:00
2 changed files with 22 additions and 7 deletions

View File

@@ -14,22 +14,22 @@ jobs:
steps: steps:
- name: Checkout 🛎️ - name: Checkout 🛎️
uses: https://github.com/actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Docker Buildx 🐋 - name: Set up Docker Buildx 🐋
uses: https://github.com/docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Log in to the container registry 🚪 - name: Log in to the container registry 🚪
uses: https://github.com/docker/login-action@v2 uses: docker/login-action@v2
with: with:
username: jofranmtz username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker 🏋️ - name: Extract metadata (tags, labels) for Docker 🏋️
id: meta id: meta
uses: https://github.com/docker/metadata-action@v4 uses: docker/metadata-action@v4
with: with:
images: jofranmtz/wakapi-readme-stats images: ${{ vars.DOCKERHUB_IMAGE }}
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr
@@ -37,7 +37,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image 🏗️ - name: Build and push Docker image 🏗️
uses: https://github.com/docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases') }} push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases') }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}

15
.github/workflows/publish_release.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Publish release
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: 1.0