Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Ecr push #31

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
publish-image:
runs-on: ubuntu-latest
runs-on: self-hosted
name: Publish container image
steps:
- name: Checkout
Expand All @@ -28,3 +28,9 @@ jobs:
run: make docker-build
- name: Push container image to dockerhub
run: make docker-push
- name: Tag image with ECR URI
run: |
echo "NEW_IMAGE=${{ secrets.ECR_URI }}/init:${{ env.IMAGE_TAG }}" >> $GITHUB_ENV
docker tag ${{ env.IMAGE_TAG }} ${{ env.NEW_IMAGE }}
- name: Push container image to ECR
run: docker push ${{ env.NEW_IMAGE }}
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
IMAGE ?= storageos/init:test

GO_BUILD_CMD = go build -v
GO_ENV = GOOS=linux CGO_ENABLED=0

Expand Down