Looks like Disney is using Meteor?

Just came across this repo:

Kind of an interesting repo, even apart from the fact that it’s Disney.

5 Likes

@GeoffreyBooth any comments? :sweat_smile:

Time to learn docker

I have been using this library for a year now, it is great for automating my build process. I use github actions to trigger a build and then push the image to a docker repository.

I’d be really interested to see your GitHub actions for this if they are publicly available.

I have it build when I commit a tag:

name: Test, Build and Publish Docker Image
on: 
  push:
    # branches: 
    #   - dev
    #   - master
    tags:
      - v*

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Build Docker Image
        env: 
          METEOR_DISABLE_OPTIMISTIC_CACHING: 1
        run: |
          echo ${{github.ref}}
          fullversion=${{github.ref}}
          version=$( echo "${fullversion//refs\/tags\//}")
          echo version $version $fullversion
          docker build . --file Dockerfile --tag argusrocks/argus:$(date +%F)_$version  --build-arg NPM_TOKEN=${{secrets.NPM_TOKEN}}
          
      - name: publish image to dockerhub
        run: |
          echo ${{github.ref}}
          fullversion=${{github.ref}}
          version=$( echo "${fullversion//refs\/tags\//}")
          echo version $version $fullversion
          docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
          sudo docker push argusrocks/argus:$(date +%F)_$version

I do some funky things to put the date and tag into the image name, but it doesn’t have to be that complicated.

4 Likes