v7.0.8 -> v7.0.9 #405
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: Continuous testing and deployment | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
pull_request: | |
permissions: read-all | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install goss and dgoss | |
uses: e1himself/[email protected] | |
with: | |
# Goss release version to install | |
version: 'v0.3.16' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build the Docker image | |
uses: docker/[email protected] | |
with: | |
push: false | |
tags: phanan/koel:test | |
- name: Run goss tests on the image | |
run: dgoss run phanan/koel:test | |
deploy: | |
name: Deploy to Docker Hub | |
runs-on: ubuntu-20.04 | |
needs: [test] | |
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
id: qemu | |
with: | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Login to DockerHub | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- name: Build and push the production image | |
uses: docker/[email protected] | |
with: | |
push: true | |
tags: phanan/koel:latest,phanan/koel:7.0.9 | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 |