Skip to content

Commit 680dfc7

Browse files
committed
#33: Changing GitHub Actions syntax to use GitHub encrypted secrets.
1 parent be983e1 commit 680dfc7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/native-image-compile.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151

5252
- name: Build Native Image with Docker and Release to Heroku & Docker Hub
5353
run: |
54-
echo ' Login into Heroku Container Registry first, so that we can push our Image later'
55-
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.heroku.com
54+
echo 'Login into Heroku Container Registry first, so that we can push our Image later'
55+
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin registry.heroku.com
5656
5757
echo 'Compile Native Image using Docker'
5858
docker build . --tag=registry.heroku.com/spring-boot-graal/web
@@ -64,6 +64,8 @@ jobs:
6464
./heroku-release.sh spring-boot-graal
6565
6666
echo 'Push to Docker Hub also, since automatic Builds there don't have anough RAM to do a docker build'
67-
echo "$DOCKER_HUB_TOKEN" | docker login -u "$DOCKER_HUB_USERNAME" --password-stdin
67+
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
6868
docker tag registry.heroku.com/spring-boot-graal/web jonashackt/spring-boot-graalvm:latest
6969
docker push jonashackt/spring-boot-graalvm:latest
70+
env:
71+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

0 commit comments

Comments
 (0)