25 lines
832 B
YAML
25 lines
832 B
YAML
name: Build and push image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
token: ${{ gitsecrets.token }}
|
|
- name: Install
|
|
run: curl -fsSL get.docker.com | bash
|
|
- name: Clone
|
|
run: git clone https://git.tgj.services/thatguyjack/wednesday-emails.git .
|
|
- name: Login
|
|
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login https://git.tgj.services -u ThatGuyJack --password-stdin
|
|
- name: Buildx Container
|
|
run: docker buildx create --name buildx --driver=docker-container
|
|
- name: Build wednesday
|
|
run: docker buildx build --builder=buildx --platform=linux/amd64 . -t git.tgj.services/thatguyjack/wednesday-emails:latest --push
|