All checks were successful
Build and Publish Docker Container / build (push) Successful in 3m13s
37 lines
898 B
YAML
37 lines
898 B
YAML
name: Build and Publish Docker Container
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-latest
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to Docker
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: git.joshuacoles.me
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Build and Push Docker image
|
|
uses: docker/build-push-action@675965c0e16f1a0f94ecafff969d8c966f92c17b
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: git.joshuacoles.me/joshuacoles/toggl-portal:arm
|
|
build-args: |
|
|
APP_NAME=toggl-portal
|
|
PACKAGE_NAME=toggl-portal
|