Skip to content

Commit

Permalink
feat: add action to build and push a new image when a new tag is created
Browse files Browse the repository at this point in the history
  • Loading branch information
eddex committed Mar 4, 2023
1 parent 1856c69 commit ef97258
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Image CI

on:
push:
tags:
- "*" # all tags

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build -t eddex/koios-proxy:${{ github.event.release.tag_name }} -t eddex/koios-proxy:latest -f .\KoiosProxy\Dockerfile .
- name: Docker Login (docker hub)
uses: docker/login-action@v2.1.0
with:
username: eddex
password: ${{ secrets.DOCKER_HUB_PAT }}
- name: Docker push latest
run: docker push eddex/koios-proxy:latest
- name: Docker push tag
run: docker push eddex/koios-proxy:${{ github.event.release.tag_name }}

0 comments on commit ef97258

Please sign in to comment.