-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1.02 KB
/
development-build.yml
File metadata and controls
30 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Development Build
on:
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -t alanimdeo/conveyor:development .
- name: Push Docker image to Docker Hub
run: |
docker push alanimdeo/conveyor:development
- name: Push Docker image to GitHub Container Registry
run: |
docker tag alanimdeo/conveyor:development ghcr.io/alanimdeo/conveyor:development
docker push ghcr.io/alanimdeo/conveyor:development