-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.17 KB
/
action-migrate-containers.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Migrate containers to GHCR
on:
workflow_dispatch:
inputs:
organization:
description: "Please provide the organization that you want to run"
required: true
default: 'githubschool'
containerList:
description: "Please provide the name of file that lists the container that you want migrate from"
required: true
default: 'containers.txt'
permissions:
packages: write
contents: write
env:
ORGANIZATION: ${{ github.event.inputs.organization }}
FILE_CONTAINERS: ${{ github.event.inputs.containerList }}
defaults:
run:
working-directory: container-migration
jobs:
Pull-And-Push-Image:
runs-on: ubuntu-latest
name: Migrate containers
steps:
- name: Checkout files
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Migrate containers
run: |
chmod +x ./migrate-containers.sh
./migrate-containers.sh