From 347ebcca385cf6ce898c198753e00dfef0102960 Mon Sep 17 00:00:00 2001 From: sautmanurung1 Date: Sat, 23 Apr 2022 23:46:07 +0700 Subject: [PATCH] Add CI/CD --- .github/workflows/cd.yml | 4 ++-- .github/workflows/ci.yml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d3f0bac..95b260d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -14,8 +14,8 @@ jobs: - name: Login To DockerHub uses: docker/login-action@v1 with: - dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub-password: ${{ secrets.DOCKERHUB_PASSWORD }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Build and Push uses: docker/build-push-action@v2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d2d79b..a27b2a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,9 +7,10 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Test Clean Architecture Go - uses: gopkg.in/karalabe/cookiejar.v2/cmd/cookiejar@v2 + - uses: actions/checkout@v3 + + - name: Setup go + uses: actions/setup-go@v3 with: go-version: '1.18' - run: go test -v -cover ./... \ No newline at end of file