diff --git a/.github/workflows/docker_build_dev_on_push_branch_dev.yml b/.github/workflows/docker_build_dev_on_push_branch_dev.yml new file mode 100644 index 0000000..b828901 --- /dev/null +++ b/.github/workflows/docker_build_dev_on_push_branch_dev.yml @@ -0,0 +1,18 @@ +name: Build and push Docker images +on: + push: + branches: + - dev +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build and push Docker images + uses: docker/build-push-action@v1.1.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} # optional + password: ${{ secrets.DOCKER_PASSWORD }} # optional + repository: ssidk/${{ github.event.repository.name }} + tags: dev \ No newline at end of file diff --git a/.github/workflows/docker_build_latest_on_push_branch_master.yml b/.github/workflows/docker_build_latest_on_push_branch_master.yml new file mode 100644 index 0000000..40a5564 --- /dev/null +++ b/.github/workflows/docker_build_latest_on_push_branch_master.yml @@ -0,0 +1,18 @@ +name: Build and push Docker images +on: + push: + branches: + - master +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build and push Docker images + uses: docker/build-push-action@v1.1.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} # optional + password: ${{ secrets.DOCKER_PASSWORD }} # optional + repository: ssidk/${{ github.event.repository.name }} + tags: latest \ No newline at end of file diff --git a/.github/workflows/docker_build_version_on_release.yml b/.github/workflows/docker_build_version_on_release.yml new file mode 100644 index 0000000..6784ce6 --- /dev/null +++ b/.github/workflows/docker_build_version_on_release.yml @@ -0,0 +1,18 @@ +name: Build and push Docker images +on: + release: + types: [created] +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build and push Docker images + uses: docker/build-push-action@v1.1.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} # optional + password: ${{ secrets.DOCKER_PASSWORD }} # optional + repository: ssidk/${{ github.event.repository.name }} + tag_with_ref: true # optional + push: ${{ startsWith(github.ref, 'refs/tags/') }} # optional, default is true