Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Apr 23, 2020
1 parent bee8d2f commit 2a0e72a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set image name
run: echo ::set-env name=NAME::$(echo $IMAGE_TAG | sed -E 's/-v*([0-9].*)+//')

- name: Login to docker hub
if: success()
uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: Set image name
run: echo ::set-env name=NAME::$(echo $IMAGE_TAG | sed -E 's/-v*([0-9].*)+//')

- name: Build image
if: success()
run: |
echo "Build image baseimage:${IMAGE_TAG} for ${NAME}..."
docker build -t exelban/baseimage:${IMAGE_TAG} ./${NAME}
docker tag exelban/baseimage:${IMAGE_TAG} exelban/baseimage:${NAME}-latest
Expand Down

0 comments on commit 2a0e72a

Please sign in to comment.