Skip to content

fix: environment variable config with docker env #7

fix: environment variable config with docker env

fix: environment variable config with docker env #7

Workflow file for this run

name: pipeline
on:
push:
branches:
- "main"
permissions:
packages: write
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ./Backend
push: true
tags: |
ghcr.io/david200308/authentication-system/backend:latest
ghcr.io/david200308/authentication-system/backend:${{ github.sha }}