Skip to content

Commit

Permalink
Adding deploy to Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Oct 18, 2021
1 parent d3e319b commit 57dcb2c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to AWS

on:
push:
branches: [ master, ecs_deploy ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file Dockerfile --tag glenrobson/iiif-presentation-validator:$(date +%s)

- name: Docker Push
run: docker push glenrobson/iiif-presentation-validator

0 comments on commit 57dcb2c

Please sign in to comment.