8000 Update dockerpublish.yml · cqkh42/javascript-exercises@ea9aebf · GitHub
[go: up one dir, main page]

Skip to content

Commit ea9aebf

Browse files
authored
Update dockerpublish.yml
1 parent 4c33dae commit ea9aebf

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

.github/workflows/dockerpublish.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,17 @@ on:
66
branches:
77
- master
88

9-
# Publish `v1.2.3` tags as releases.
10-
tags:
11-
- v*
12-
13-
# Run tests for any PRs.
14-
pull_request:
15-
169
env:
1710
# TODO: Change variable to your image's name.
1811
IMAGE_NAME: node-jasmine
1912
VERSION: latest
2013

2114
jobs:
22-
# Run tests.
23-
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
24-
test:
25-
runs-on: ubuntu-latest
26-
27-
steps:
28-
- uses: actions/checkout@v2
29-
30-
- name: Run tests
31-
run: |
32-
if [ -f docker-compose.test.yml ]; then
33-
docker-compose --file docker-compose.test.yml build
34-
docker-compose --file docker-compose.test.yml run sut
35-
else
36-
docker build . --file Dockerfile
37-
fi
38-
3915
# Push image to GitHub Packages.
4016
# See also https://docs.docker.com/docker-hub/builds/
4117
push:
42-
# Ensure test job passes before pushing image.
43-
needs: test
44-
4518
runs-on: ubuntu-latest
4619
if: github.event_name == 'push'
47-
4820
steps:
4921
- uses: actions/checkout@v2
5022

@@ -62,7 +34,6 @@ jobs:
6234
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
6335
6436
echo IMAGE_ID=$IMAGE_ID
65-
echo VERSION=$VERSION
6637
67-
docker tag image $IMAGE_ID:$VERSION
68-
docker push $IMAGE_ID:$VERSION
38+
docker tag image $IMAGE_ID
39+
docker push $IMAGE_ID

0 commit comments

Comments
 (0)
0