diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1eab2ab..1231f42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,22 +40,27 @@ path: | ${{ env.modcache }} key: setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go-${{ hashFiles('**/*.go', 'env.txt') }} + #key: setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go-${{ hashFiles('**/*.go') }} restore-keys: | - setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }} + setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go - name: Build Linux binary run: go build - name: Build Docker image + if: ${{ true }} run: docker build -t ${{ secrets.DOCKER_USERNAME }}/az-appservice . - name: Login to Docker Hub + if: ${{ true }} run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} - name: Docker push + if: ${{ true }} run: docker push ${{ secrets.DOCKER_USERNAME }}/az-appservice - name: Deploy to Azure Web App + if: ${{ true }} uses: azure/webapps-deploy@v2 with: app-name: akv-demo-go diff --git a/main.go b/main.go index edcab4c..ad58a58 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,6 @@ func mainWithDeferred() { time.Sleep(1 * time.Second) } -// just for testing CI, remove this comment asap func main() { flag.Parse() log.Setup(*prod)