-
-
Notifications
You must be signed in to change notification settings - Fork 31
30 lines (28 loc) · 848 Bytes
/
publish-docker-image.yaml
File metadata and controls
30 lines (28 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Publish Docker image
# This workflow currently publishes to the following account unless we have an
# official MacPorts repo on DockerHub
#
# DockerHub Repo: arjunsalyan/macports-webapp
# Email: arjun@macports.org
# Github: @arjunsalyan
on:
push:
branches: [ main ]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
environment: main
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v5
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.ARJUNSALYAN_DOCKER_USERNAME }}
password: ${{ secrets.ARJUNSALYAN_DOCKER_PASSWORD }}
- name: Push to Docker Hub
uses: docker/build-push-action@v6
with:
push: true
tags: arjunsalyan/macports-webapp:latest