Merge pull request #17 from miguelcarcamov/development #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-base-container | |
on: | |
push: | |
branches: [master, framework_dev, development] | |
paths: | |
- Dockerfile | |
pull_request: | |
branches: [master] | |
types: [opened, reopened] | |
paths: | |
- Dockerfile | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
build-base-container: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and Push Docker Image | |
uses: docker/build-push-action@v6 | |
with: | |
push: true # Will only build if this is not here | |
tags: ${{ env.REGISTRY }}/${{ github.repository }}:base |