Skip to content

Commit

Permalink
Test docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
vexorian committed Nov 10, 2023
1 parent 382a379 commit 163c7eb
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/development-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Development Tag

on:
push:
branches:
- docker-action

jobs:
build-on-dev:
uses: ./.github/workflows/docker-build.yml
with:
tag: docker-action-test
31 changes: 31 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker Build

on:
workflow_call:
inputs:
tag:
required: true
type: string

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

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

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

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: user/app:${{ inputs.tag }}

0 comments on commit 163c7eb

Please sign in to comment.