diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 200db62..b916295 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,91 +45,91 @@ jobs: push-docker-backend: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - 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: elisiariocouto - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Docker meta backend - id: meta-backend - uses: docker/metadata-action@v5 - with: - flavor: | - latest=false - # list of Docker images to use as base name for tags - images: | - elisiariocouto/leggen - ghcr.io/elisiariocouto/leggen - # generate Docker tags based on the following events/attributes - tags: | - type=ref,event=tag - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=raw,value=latest - - name: Build and push backend - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - platforms: linux/amd64,linux/arm64 - push: true - tags: ${{ steps.meta-backend.outputs.tags }} - labels: ${{ steps.meta-backend.outputs.labels }} + - name: Checkout + uses: actions/checkout@v4 + - 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: elisiariocouto + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker meta backend + id: meta-backend + uses: docker/metadata-action@v5 + with: + flavor: | + latest=false + # list of Docker images to use as base name for tags + images: | + elisiariocouto/leggen + ghcr.io/elisiariocouto/leggen + # generate Docker tags based on the following events/attributes + tags: | + type=ref,event=tag + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=raw,value=latest + - name: Build and push backend + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta-backend.outputs.tags }} + labels: ${{ steps.meta-backend.outputs.labels }} push-docker-frontend: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - 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: elisiariocouto - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Docker meta frontend - id: meta-frontend - uses: docker/metadata-action@v5 - with: - flavor: | - latest=false - # list of Docker images to use as base name for tags - images: | - elisiariocouto/leggen - ghcr.io/elisiariocouto/leggen - # generate Docker tags based on the following events/attributes - tags: | - type=ref,event=tag,suffix=-frontend - type=semver,pattern={{version}},suffix=-frontend - type=semver,pattern={{major}}.{{minor}},suffix=-frontend - type=raw,value=latest-frontend - - name: Build and push frontend - uses: docker/build-push-action@v5 - with: - context: ./frontend - file: ./frontend/Dockerfile - platforms: linux/amd64,linux/arm64 - push: true - tags: ${{ steps.meta-frontend.outputs.tags }} - labels: ${{ steps.meta-frontend.outputs.labels }} + - name: Checkout + uses: actions/checkout@v4 + - 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: elisiariocouto + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker meta frontend + id: meta-frontend + uses: docker/metadata-action@v5 + with: + flavor: | + latest=false + # list of Docker images to use as base name for tags + images: | + elisiariocouto/leggen + ghcr.io/elisiariocouto/leggen + # generate Docker tags based on the following events/attributes + tags: | + type=ref,event=tag,suffix=-frontend + type=semver,pattern={{version}},suffix=-frontend + type=semver,pattern={{major}}.{{minor}},suffix=-frontend + type=raw,value=latest-frontend + - name: Build and push frontend + uses: docker/build-push-action@v5 + with: + context: ./frontend + file: ./frontend/Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta-frontend.outputs.tags }} + labels: ${{ steps.meta-frontend.outputs.labels }}