Skip to content

Workflow, compose, more info #1

Workflow, compose, more info

Workflow, compose, more info #1

Workflow file for this run

on: [push, pull_request]
name: "Continuous Integration"
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
file: ./Dockerfile
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/cthit/chalmers-ldap-gamma-sync:latest