Skip to content

Commit

Permalink
Set release workflow to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveViss committed Jan 30, 2024
1 parent d224f95 commit c7d3eb3
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 48 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
name: Publish release container

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
release:
types: [created, edited, published]

env:
IMAGE_NAME: insileco/edrivers

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE_NAME }}

- name: Build and push
uses: docker/build-push-action@v5
with:
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
push: true
48 changes: 0 additions & 48 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit c7d3eb3

Please sign in to comment.