Merge pull request #267 from Yooooomi/release/1.7.0 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release CI | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Get current tag | |
id: tag | |
uses: "WyriHaximus/github-action-get-previous-tag@master" | |
- name: Build and push client release | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./client | |
file: ./client/Dockerfile.production | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
yooooomi/your_spotify_client:latest | |
yooooomi/your_spotify_client:${{ steps.tag.outputs.tag }} | |
- name: Build and push server release | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./server | |
file: ./server/Dockerfile.production | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
yooooomi/your_spotify_server:latest | |
yooooomi/your_spotify_server:${{ steps.tag.outputs.tag }} |