Skip to content

Commit

Permalink
[GithubActions] Update deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
JckHoe committed Nov 30, 2023
1 parent f6529fa commit 088194d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 45 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
build-and-push:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -29,3 +29,32 @@ jobs:
with:
name: build-artifacts
path: bin/k6

deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: bin/k6

- 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: Build and push Docker image
env:
IMAGE_NAME: ghcr.io/matrixxsoftware/xk6-diameter:latest
run: |
make docker
docker push $IMAGE_NAME
44 changes: 0 additions & 44 deletions .github/workflows/docker.yml

This file was deleted.

0 comments on commit 088194d

Please sign in to comment.