Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed Jul 10, 2024
1 parent c2ac343 commit 5a0e966
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ on:
tag:
description: 'Tag to build'
required: true
type: string
type: choice
default: '0.5.0'
options:
- '0.5.0'

permissions:
packages: write
Expand All @@ -24,6 +27,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Clone source repo
run: |-
git clone https://github.com/twitter/twemproxy.git
Expand All @@ -33,13 +38,14 @@ jobs:
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build docker image
working-directory: twemproxy
run: make -f ../Makefile build IMAGE_NAME=${{ env.IMAGE }} IMAGE_TAG=${{ inputs.tag }}
working-directory: ./twemproxy
run: ls -la; pwd; make -f ../Makefile build IMAGE_NAME=${{ env.IMAGE }} IMAGE_TAG=${{ inputs.tag }}

- name: Push docker image
working-directory: ./twemproxy
run: make -f ../Makefile push IMAGE_NAME=${{ env.IMAGE }} IMAGE_TAG=${{ inputs.tag }}

0 comments on commit 5a0e966

Please sign in to comment.