From b117f9b6770b89b5b0ebd0b5710ff9bb41478756 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 31 Jan 2022 22:45:10 +0100 Subject: [PATCH] lets try this upload --- .github/workflows/image_build.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/image_build.yml b/.github/workflows/image_build.yml index a36e85f..931a4cc 100644 --- a/.github/workflows/image_build.yml +++ b/.github/workflows/image_build.yml @@ -13,18 +13,15 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - - name: Login to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - file: aprsc.dockerfile - push: true - tags: peterus/aprsc + - name: docker hub login + env: + DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} + run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD + - name: Build the aprsc image + run: docker build . --file aprsc.dockerfile --tag peterus/aprsc:latest + - name: Docker Push + run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/aprsc:latest # - name: Build and push Docker image # uses: docker/build-push-action@v2 # with: