Skip to content

Commit

Permalink
update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lwlee2608 committed Nov 30, 2023
1 parent b5a5579 commit a68a2f8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
42 changes: 21 additions & 21 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a68a2f8

Please sign in to comment.