Skip to content

Change tag to latest #10

Change tag to latest

Change tag to latest #10

Workflow file for this run

name: Docker build and push
on:
push:
branches:
- docker-compose
env:
IMAGE_NAME: aligned_base
FULL_REPO_NAME: ${{ github.repository }}
GIT_BRANCH: ${{ github.ref_name }}
jobs:
docker-build-push:
name: Build docker
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
pull-requests: write
steps:
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v1
- name: Build Docker image
run: |
pwd
ls -lah
docker build -t ghcr.io/${FULL_REPO_NAME}/${IMAGE_NAME}:${GIT_BRANCH} -f ./docker/${IMAGE_NAME}.Dockerfile .
- name: Push Docker image
run: |
docker push ghcr.io/${FULL_REPO_NAME}/${IMAGE_NAME}:${GIT_BRANCH}