From 2bbc1ad824b9dad9ec9b35dc31d28d016c064e33 Mon Sep 17 00:00:00 2001 From: Leonardo Merza Date: Sun, 7 Jan 2024 15:34:07 -0500 Subject: [PATCH] updater deployment --- .github/workflows/deploy.yaml | 4 +++- .github/workflows/deploy.yml | 27 --------------------------- .github/workflows/tag.yaml | 25 +++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/tag.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 78a6cce..e0a491a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -5,6 +5,7 @@ on: push: branches: - 'master' + jobs: docker: runs-on: ubuntu-latest @@ -25,4 +26,5 @@ jobs: uses: docker/build-push-action@v5 with: push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest \ No newline at end of file + tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest + \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 7a441e4..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: ci - -on: - push: - branches: - - 'master' -jobs: - docker: - runs-on: ubuntu-latest - steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest \ No newline at end of file diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml new file mode 100644 index 0000000..c6a7fe8 --- /dev/null +++ b/.github/workflows/tag.yaml @@ -0,0 +1,25 @@ +name: ci + +on: + push: + tags: + - '*' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Extract Tag Name + id: tag_name + run: echo "::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/})" + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.tag_name.outputs.tag }} + release_name: Release ${{ steps.tag_name.outputs.tag }} + draft: false + prerelease: false \ No newline at end of file