Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
setup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Apr 21, 2020
1 parent d0a6de7 commit fc64eac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Announce release
name: Push

on: [push]

Expand All @@ -9,28 +9,30 @@ jobs:
- run: |
REF=${GITHUB_REF##*/}
echo ::set-env name=REF::${REF}
echo ::set-env name=IMAGE_NAME::colomoto/colomoto-docker-base:${REF}
echo ::set-env name=IMAGE::colomoto/colomoto-docker-base:${REF}
- uses: actions/checkout@v2
- run: docker build -t ${IMAGE_NAME} .
- run: docker build -t ${IMAGE} .
- name: Login to docker hub
uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Push image :next
- name: Push image
uses: actions-hub/docker@master
with:
args: push ${IMAGE_NAME}
args: push ${IMAGE}
- name: Release info
if: startsWith(github.ref, 'refs/tags/')
run: |
docker run --rm ${IMAGE_NAME} apt list --installed > debian-installed.txt
docker run --rm ${IMAGE_NAME} conda env export > conda-environment-strict.yml
docker run --rm ${IMAGE} apt list --installed > debian-installed.txt
docker run --rm ${IMAGE} conda env export > conda-environment-strict.yml
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
name: ${IMAGE_NAME}
name: ${IMAGE}
files: |
debian-installed.txt
conda-environment-strict.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,3 @@ RUN CONDA_VERSION="py37_4.8.2" && \
COPY bin/* /usr/bin/

USER user

ARG SOURCE_COMMIT
ENV COLOMOTO_BASE_SOURCE_COMMIT=$SOURCE_COMMIT
4 changes: 0 additions & 4 deletions hooks/build

This file was deleted.

0 comments on commit fc64eac

Please sign in to comment.