Some checks failed
Build and Push / build_and_publish_docker_image (push) Has been cancelled
31 lines
728 B
YAML
31 lines
728 B
YAML
name: Build and Push
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build_and_publish_docker_image:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Docker
|
|
run: curl -fsSL https://get.docker.com | sh
|
|
|
|
- name: Login to Docker Registry
|
|
uses: https://github.com/docker/login-action@v3
|
|
with:
|
|
registry: git.marinodev.com
|
|
username: ${{ vars.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Build and Push Docker Image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
tags: git.marinodev.com/mitchell/rust_gitea_ci:latest
|