Skip to content

Commit

Permalink
Fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JexSrs committed Jun 17, 2024
1 parent 89529fc commit 5f1e898
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
contents: write

jobs:
create_release:
new-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -26,29 +26,24 @@ jobs:
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/app:latest
tags: |
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/app:latest
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/app:${{ steps.getand.trace_version.outputs.VERSION }}
- name: Deploy (if needed)
run: echo "Deploy step can be customized or automated here"

0 comments on commit 5f1e898

Please sign in to comment.