From a68a2f8d850f819822935e4323f3b4a08057c956 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 30 Nov 2023 09:35:49 +0800 Subject: [PATCH] update github workflow --- .github/workflows/build.yml | 28 ++++++++++++------------ .github/workflows/docker.yml | 42 ++++++++++++++++++------------------ 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae6c92b..515f8b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,20 +12,20 @@ jobs: build-and-push: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ^1.21 - id: go + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ^1.21 + id: go - - name: Build Source Code - run: make + - name: Build Source Code + run: make - - name: Upload Artifacts - uses: actions/upload-artifact@v2 - with: - name: build-artifacts - path: path/to/your/artifacts + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: build-artifacts + path: path/to/your/artifacts diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dc54185..33404d0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,28 +17,28 @@ jobs: build-and-push: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v2 - - name: Download Artifacts - uses: actions/download-artifact@v2 - with: - name: build-artifacts + - name: Download Artifacts + uses: actions/download-artifact@v2 + with: + name: build-artifacts - - name: Set up Docker Build - uses: docker/setup-buildx-action@v1 + - name: Set up Docker Build + uses: docker/setup-buildx-action@v1 - - name: Log in to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} + - name: Log in to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile - push: true - tags: ghcr.io/matrixxsoftware/xk6-diameter:latest + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: ghcr.io/matrixxsoftware/xk6-diameter:latest