Skip to content

Create docker images #1

Create docker images

Create docker images #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build Docker image
run: docker build -f Dockerfile -t 0xzion/penx:postgresql-latest .
- name: Add tags
run: docker tag penx:latest 0xzion/penx:postgresql-latest
- name: Push Docker image to Docker Hub
run: docker push 0xzion/penx:postgresql-latest