Merge branch 'develop' #139
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: damselfly-base-image | |
on: [push] | |
jobs: | |
build-docker: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
target: [linux] | |
include: | |
- target: linux | |
os: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- name: Read VERSION file | |
id: getversion | |
run: echo "::set-output name=version::$(cat VERSION)" | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build Docker for Dev (develop only) | |
if: github.ref == 'refs/heads/develop' | |
run: sh makedocker.sh | |
- name: Build Docker for Release (main only) | |
if: github.ref == 'refs/heads/main' | |
run: sh makedocker.sh main |