Skip to content

Commit

Permalink
clean up after test CI caching
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Nov 4, 2023
1 parent 0203f97 commit 7a76d44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a76d44

Please sign in to comment.