Skip to content

Commit

Permalink
make docker image build steps separately (#41)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Tingajkin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin authored Nov 10, 2020
1 parent 4e16d9b commit 2ab8f73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- uses: actions/setup-go@v1
with:
go-version: 1.15
- name: Build ${NAME} image
run: |
docker build . -t "${ORG}/${NAME}:${GITHUB_SHA::8}" --target runtime
docker build . -t "${ORG}/${NAME}" --target runtime
- name: Push ${NAME} image
- name: Build ${NAME}:${GITHUB_SHA::8} image
run: docker build . -t "${ORG}/${NAME}:${GITHUB_SHA::8}" --target runtime
- name: Build ${NAME}:latest image
run: docker build . -t "${ORG}/${NAME}" --target runtime
- name: Push ${NAME} images
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
docker push "${ORG}/${NAME}:${GITHUB_SHA::8}"
Expand Down

0 comments on commit 2ab8f73

Please sign in to comment.