17 lines
561 B
YAML
17 lines
561 B
YAML
name: Create and publish container
|
|
on:
|
|
push
|
|
jobs:
|
|
build_container:
|
|
runs_on: ubuntu-latest
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: main
|
|
- name: Build and upload image
|
|
run: |
|
|
docker login ${{ vars.REGISTRY_URL }} -u ${{ vars.REGISTRY_USER_USERNAME }} -p "${{ secrets.REGISTRY_USER_PASSWORD_ESCAPED }}"
|
|
# Run the docker build command. Preferrably use the provided wrapper function
|
|
./build-image.sh ${{ vars.REGISTRY_NAME }}/container-name
|