Skip to content

Use database env vars for dev and prod environments #1

Use database env vars for dev and prod environments

Use database env vars for dev and prod environments #1

Workflow file for this run

name: Build and Push Docker Image
on:
release:
types: [published]
push:
tags:
- '*'
branches:
- 'actions*'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PAT }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Containerfile
push: true
tags: |
docker.io/bencomp/fromthepage:latest
docker.io/bencomp/fromthepage:${{ github.ref_name }}
- name: Log out from Docker Hub
run: docker logout